Skip to content

Commit 7476b4f

Browse files
committed
fix broken text wrapping and inconsistent icons
1 parent 928e990 commit 7476b4f

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

src/css/custom.css

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,38 @@ html[data-theme="dark"] article blockquote {
611611
transform: translateX(4px) !important;
612612
}
613613

614+
/* Prevent dropdown section titles from wrapping into multiple lines
615+
and ensure title text vertically centers with icons. Also ensure
616+
icons are centered and do not shift baseline. */
617+
.navbar__item .dropdown__menu .grid>.border-r.col-span-1,
618+
.navbar-sidebar .dropdown__menu .grid>.border-r.col-span-1,
619+
.navbar__item .dropdown-content .grid>.border-r.col-span-1 {
620+
white-space: nowrap !important;
621+
display: flex !important;
622+
align-items: center !important;
623+
gap: 0.5rem !important;
624+
line-height: 1 !important;
625+
}
626+
627+
/* Align icon cells and images to vertical center and prevent clipping */
628+
.navbar__item .dropdown__menu .nav__icons,
629+
.navbar-sidebar .nav__icons,
630+
.dropdown__menu .nav__icons {
631+
display: inline-flex !important;
632+
align-items: center !important;
633+
justify-content: center !important;
634+
gap: 0.5rem !important;
635+
}
636+
637+
.navbar__item .dropdown__menu .nav__icons img,
638+
.navbar-sidebar .nav__icons img,
639+
.dropdown__menu .nav__icons img {
640+
display: block !important;
641+
margin: 0 !important;
642+
width: 30px !important;
643+
height: 30px !important;
644+
}
645+
614646
/* Ensure navbar container doesn't clip dropdowns */
615647
.navbar,
616648
.navbar__inner,
@@ -2716,5 +2748,4 @@ html[data-theme="dark"] .blog-post-page .markdown h4 {
27162748
justify-content: center !important;
27172749
gap: 15px !important;
27182750
margin-top: 15px !important;
2719-
}
2720-
2751+
}

0 commit comments

Comments
 (0)