File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1076,7 +1076,9 @@ defineOgImageComponent('Package', {
10761076
10771077 <div class =" area-sidebar" >
10781078 <!-- Sidebar -->
1079- <div class =" sidebar-scroll sticky top-34 space-y-6 sm:space-y-8 min-w-0 xl:(top-22 pt-2)" >
1079+ <div
1080+ class =" sidebar-scroll sticky top-34 space-y-6 sm:space-y-8 min-w-0 overflow-y-auto pr-2.5 hover:pr-0.5 lg:(max-h-[calc(100dvh-8.5rem)] overscroll-contain) xl:(top-22 pt-2 max-h-[calc(100dvh-6rem)])"
1081+ >
10801082 <!-- Maintainers (with admin actions when connected) -->
10811083 <PackageMaintainers :package-name =" pkg.name" :maintainers =" pkg.maintainers" />
10821084
@@ -1225,20 +1227,9 @@ defineOgImageComponent('Package', {
12251227 grid-area : sidebar;
12261228}
12271229
1228- /* Keep sidebar scrollable inside viewport when hovered/focused. */
1229- .sidebar-scroll {
1230- overflow-y : auto ;
1231- padding-right : 10px ;
1232- }
1233-
1234- .sidebar-scroll :hover {
1235- padding-right : 2px ;
1236- }
1237-
1230+ /* Sidebar scrollbar: hidden by default, shown on hover/focus */
12381231@media (min-width : 1024px ) {
12391232 .sidebar-scroll {
1240- max-height : calc (100 dvh - 8.5rem );
1241- overscroll-behavior : contain ;
12421233 scrollbar-gutter : stable;
12431234 scrollbar-width : none ;
12441235 }
@@ -1271,12 +1262,6 @@ defineOgImageComponent('Package', {
12711262 }
12721263}
12731264
1274- @media (min-width : 1280px ) {
1275- .sidebar-scroll {
1276- max-height : calc (100 dvh - 6rem );
1277- }
1278- }
1279-
12801265/* Improve package name wrapping for narrow screens */
12811266.area-header h1 {
12821267 overflow-wrap : anywhere;
You can’t perform that action at this time.
0 commit comments