File tree Expand file tree Collapse file tree 1 file changed +29
-13
lines changed
storage/framework/defaults/components/Dashboard Expand file tree Collapse file tree 1 file changed +29
-13
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ const switchTeam = (team: Team) => {
381
381
<!-- Section content -->
382
382
<ul
383
383
role =" list"
384
- class =" mt-2 -mx-2 space-y-1 section-content"
384
+ class =" mt-2 -mx-2 space-y-1 section-content max-h-[60vh] overflow-y-auto pr-2 "
385
385
:class =" sections[sectionKey] ? 'expanded' : 'collapsed'"
386
386
>
387
387
<li v-for =" item in sectionContent[sectionKey]?.items || []" :key =" item.to" >
@@ -482,6 +482,34 @@ const switchTeam = (team: Team) => {
482
482
rounded-md p-2 text-sm leading-6 font-semibold;
483
483
}
484
484
485
+ /* Make sure section content is scrollable when it overflows */
486
+ .section-content {
487
+ @apply overflow-hidden transition-all duration- 300 ease-in-out ;
488
+ }
489
+
490
+ .section-content.expanded {
491
+ @apply overflow-y-auto ;
492
+ max-height : calc (100vh - 250px );
493
+ scrollbar-width : thin ;
494
+ }
495
+
496
+ .section-content.collapsed {
497
+ max-height : 0 ;
498
+ overflow : hidden ;
499
+ }
500
+
501
+ .section-content ::-webkit-scrollbar {
502
+ width : 4px ;
503
+ }
504
+
505
+ .section-content ::-webkit-scrollbar-track {
506
+ @apply bg-transparent ;
507
+ }
508
+
509
+ .section-content ::-webkit-scrollbar-thumb {
510
+ @apply bg-gray- 300 dark :bg-gray-600 rounded;
511
+ }
512
+
485
513
.router-link-active {
486
514
@apply bg-blue-gray- 50 text-blue- 600 dark :bg-gray-700 dark :text-blue-400;
487
515
}
@@ -512,18 +540,6 @@ const switchTeam = (team: Team) => {
512
540
@apply text-blue- 600 dark :text-blue-400 !important ;
513
541
}
514
542
515
- .section-content {
516
- @apply overflow-hidden transition-all duration- 300 ease-in-out ;
517
- }
518
-
519
- .collapsed {
520
- @apply max-h- 0;
521
- }
522
-
523
- .expanded {
524
- @apply max-h- 96;
525
- }
526
-
527
543
li [draggable = " true" ] {
528
544
@apply touch-none select-none ;
529
545
will-change : transform;
You can’t perform that action at this time.
0 commit comments