@@ -969,7 +969,7 @@ body {
969969.dropdown-content .grid {
970970 width : 100% !important ;
971971 /* Comfortable space between the label column and icons column */
972- column-gap : 1 rem !important ;
972+ column-gap : 0.6 rem !important ;
973973 /* Subtle vertical space per row */
974974 padding : 0.35rem 0 !important ;
975975}
@@ -1035,6 +1035,60 @@ body {
10351035 color : var (--ifm-font-color-base );
10361036}
10371037
1038+ /* Prevent labels in the left column of navbar dropdowns from wrapping */
1039+ .dropdown-content .border-r .col-span-1 ,
1040+ .dropdown__menu .border-r .col-span-1 ,
1041+ .dropdown-content .col-span-1 > a ,
1042+ .dropdown__menu .col-span-1 > a {
1043+ white-space : nowrap !important ;
1044+ overflow : hidden !important ;
1045+ text-overflow : ellipsis !important ;
1046+ }
1047+
1048+ /* Stronger layout rules to keep labels and icons aligned across deployments */
1049+ .dropdown__menu .grid > .border-r .col-span-1 ,
1050+ .dropdown-content .grid > .border-r .col-span-1 {
1051+ display : flex !important ;
1052+ align-items : center !important ;
1053+ justify-content : flex-start !important ;
1054+ flex : 0 0 auto !important ;
1055+ min-width : auto !important ;
1056+ /* allow label to size to content */
1057+ padding-right : 0.4rem !important ;
1058+ }
1059+
1060+ /* Make the label itself use a single line and center vertically */
1061+ .dropdown__menu .grid > .border-r .col-span-1 a ,
1062+ .dropdown-content .grid > .border-r .col-span-1 a {
1063+ display : inline-block !important ;
1064+ white-space : nowrap !important ;
1065+ line-height : 1 !important ;
1066+ }
1067+
1068+ /* Ensure icon groups are vertically centered and consistent */
1069+ .dropdown__menu .grid .nav__icons ,
1070+ .dropdown-content .grid .nav__icons {
1071+ display : inline-flex !important ;
1072+ align-items : center !important ;
1073+ justify-content : center !important ;
1074+ gap : 0.6rem !important ;
1075+ }
1076+
1077+ .dropdown__menu .grid .nav__icons img ,
1078+ .dropdown-content .grid .nav__icons img {
1079+ display : block !important ;
1080+ margin : 0 !important ;
1081+ }
1082+
1083+ /* Fallback for very narrow viewports: reduce min-width slightly */
1084+ @media (max-width : 480px ) {
1085+
1086+ .dropdown__menu .grid > .border-r .col-span-1 ,
1087+ .dropdown-content .grid > .border-r .col-span-1 {
1088+ min-width : 72px !important ;
1089+ }
1090+ }
1091+
10381092.dropdown-content a : hover {
10391093 color : var (--ifm-font-color-base-inverse );
10401094 background : var (--ifm-color-emphasis-600 );
0 commit comments