Skip to content

Commit

Permalink
improve line break in sidebar TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
iJungleboy committed Dec 12, 2024
1 parent 2f3ae65 commit 3a6f77b
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs-src/templates/2sxc/public/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs-src/templates/2sxc/public/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs-src/templates/2sxc/public/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs-src/templates/2sxc/public/main.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs-src/templates/shared-global/src/styles/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
// Special Architecture SVG image with highlights which animate
@use "./img-architecture.scss";

// Experimental line wrap in TOC //
@import './api-toc-sidebar-menu.scss';


///*** Third-Party Dependencies ***///
// Fancybox
@import "~@fancyapps/ui/dist/fancybox/fancybox.css";

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Special enhancement
// So that APIs like method names don't wrap in the right panel
// Otherwise long APIs take up 3-7 lines and make it really hard to read

// Only on the body which is marked as a "ManagedReference"
body[data-yaml-mime="ManagedReference"] nav#affix {

// Links to methods / properties
a.link-secondary {
display: block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;

// test color while working
// color: green !important;

// Docfx generates a bunch of word-break tags, which if visible prevent the ellipsis from happening
wbr {
display: none;
}
}
}
2 changes: 1 addition & 1 deletion docs/public/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/public/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/public/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/public/main.js.map

Large diffs are not rendered by default.

0 comments on commit 3a6f77b

Please sign in to comment.