diff --git a/src/styles/content.css b/src/styles/content.css index 46f4c64b6..1e9e0b591 100644 --- a/src/styles/content.css +++ b/src/styles/content.css @@ -28,4 +28,8 @@ color: var(--text-heading); border-bottom: 1px solid var(--background-highlight); padding-bottom: 5px; +} + +#content img { + max-width: 100%; } \ No newline at end of file diff --git a/src/styles/navbar/navbar.css b/src/styles/navbar/navbar.css index 5b93d1d3e..e409d7813 100644 --- a/src/styles/navbar/navbar.css +++ b/src/styles/navbar/navbar.css @@ -42,6 +42,13 @@ flex-direction: column; list-style: none; cursor: pointer; + max-width: 350px; +} + +#menu li span { + display: inline-block; + overflow: hidden; + text-overflow: ellipsis; } #menu li .collapsible-label { diff --git a/src/styles/toc.css b/src/styles/toc.css index 234c25eef..3e02d6577 100644 --- a/src/styles/toc.css +++ b/src/styles/toc.css @@ -18,6 +18,7 @@ margin: 0; border-radius: 6px; padding: 0 0 0 16px; + max-width: 250px; } #toc, #toc ul { @@ -28,6 +29,12 @@ padding-left: 16px; } +#toc span { + text-overflow: ellipsis; + overflow: hidden; + display: inline-block; +} + #toc li a { /* position: relative; */ display: flex; diff --git a/src/templates/toc_item.ejs b/src/templates/toc_item.ejs index 1a8571092..b18b4a1a6 100644 --- a/src/templates/toc_item.ejs +++ b/src/templates/toc_item.ejs @@ -6,7 +6,7 @@ const slug = slugify(entry.name);
  • - <%= entry.name %> + <%= entry.name %> <% if (entry.children.length) { %> diff --git a/src/templates/tree_item.ejs b/src/templates/tree_item.ejs index f39d0d14e..84762bb20 100644 --- a/src/templates/tree_item.ejs +++ b/src/templates/tree_item.ejs @@ -8,7 +8,7 @@ const target = isExternalLink ? ` target="_blank" rel="noopener noreferrer"` : " <% if (note.noteId !== subRoot.note.noteId) { %> > <% if (note.hasVisibleChildren()) { %><% } %> - <%= note.title %> + <%= note.title %> <% } %>