mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-25 14:10:14 +08:00
Fix multiple cases of overflow
This commit is contained in:
parent
3dc3f1579b
commit
81e986db30
@ -28,4 +28,8 @@
|
|||||||
color: var(--text-heading);
|
color: var(--text-heading);
|
||||||
border-bottom: 1px solid var(--background-highlight);
|
border-bottom: 1px solid var(--background-highlight);
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content img {
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
@ -42,6 +42,13 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
max-width: 350px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu li span {
|
||||||
|
display: inline-block;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu li .collapsible-label {
|
#menu li .collapsible-label {
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 0 0 0 16px;
|
padding: 0 0 0 16px;
|
||||||
|
max-width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#toc, #toc ul {
|
#toc, #toc ul {
|
||||||
@ -28,6 +29,12 @@
|
|||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#toc span {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
#toc li a {
|
#toc li a {
|
||||||
/* position: relative; */
|
/* position: relative; */
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -6,7 +6,7 @@ const slug = slugify(entry.name);
|
|||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#<%= slug %>">
|
<a href="#<%= slug %>">
|
||||||
<%= entry.name %>
|
<span><%= entry.name %></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<% if (entry.children.length) { %>
|
<% if (entry.children.length) { %>
|
||||||
|
@ -8,7 +8,7 @@ const target = isExternalLink ? ` target="_blank" rel="noopener noreferrer"` : "
|
|||||||
<% if (note.noteId !== subRoot.note.noteId) { %>
|
<% if (note.noteId !== subRoot.note.noteId) { %>
|
||||||
<a class="<%= linkClass %>" href="<%= linkHref %>"<%= target %>>
|
<a class="<%= linkClass %>" href="<%= linkHref %>"<%= target %>>
|
||||||
<% if (note.hasVisibleChildren()) { %><button class="collapse-button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle"><path d="M3 8L12 17L21 8"></path></svg></button><% } %>
|
<% if (note.hasVisibleChildren()) { %><button class="collapse-button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle"><path d="M3 8L12 17L21 8"></path></svg></button><% } %>
|
||||||
<%= note.title %>
|
<span><%= note.title %></span>
|
||||||
</a>
|
</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user