|
482 | 482 | <div |
483 | 483 | class=" |
484 | 484 | w-[100cqw] h-[100cqh] box-border overflow-auto [scrollbar-width:_thin] |
485 | | - grid gap-y-4 content-stretch items-start grid-rows-[max-content_max-content_max-content_1fr] |
| 485 | + grid gap-y-4 content-stretch items-start grid-rows-[max-content_max-content_max-content_1fr] {searchValue.length ? 'grid-rows-[max-content_1fr_max-content_max-content_max-content]' : ''} |
486 | 486 | py-2 px-0 @[184px]:p-2 [--header-height:_3rem] @[56px]:[--header-height:_3.5rem] @[184px]:[--header-height:_3.625rem] |
487 | 487 | " |
488 | 488 | > |
|
644 | 644 | content-start overflow-auto |
645 | 645 | h-full |
646 | 646 | max-h-[calc(100cqh_-_var(--header-height)_-_9.75rem)] |
647 | | - min-h-16 |
| 647 | + {searchValue.length && matchingTabs.length ? 'min-h-10' : 'min-h-16'} |
648 | 648 | [scrollbar-width:_none] [scrollbar-color:transparent_transparent] |
649 | 649 | hover:[scrollbar-width:_thin] focus-within:[scrollbar-width:_thin] |
650 | 650 | hover:[scrollbar-color:initial] focus-within:[scrollbar-color:initial] |
|
663 | 663 | {i18n.getMessage('search_no_matches')} |
664 | 664 | </p> |
665 | 665 | {/if} |
666 | | - <li class=""> |
667 | | - {#if !searchUnmatchingWorkspaceUUIDS.includes('HOME')} |
| 666 | + {#if !searchUnmatchingWorkspaceUUIDS.includes('HOME')} |
| 667 | + <li class="[&+div]:mt-4"> |
668 | 668 | {@render SWorkspace(homeWorkspace, 0)} |
669 | | - {/if} |
670 | | - </li> |
| 669 | + </li> |
| 670 | + {/if} |
671 | 671 | <!-- viewWorkspaces.length !== workspaces.length || workspaces.length < 2, --> |
672 | 672 | <div |
673 | | - class="w-full grid gap-4 mt-4 empty:mt-0 {searchValue.length ? 'mt-0' : ''}" |
| 673 | + class="w-full grid gap-4" |
674 | 674 | > |
675 | 675 | {#each viewWorkspaces as workspace, i (workspace.UUID)} |
676 | 676 | <li |
677 | | - class="item relative max-w-[100cqw]" |
| 677 | + class="item relative max-w-[100cqw] !h-max" |
678 | 678 | use:draggable={dragOptions} |
679 | 679 | transition:slide={{ delay: 0, duration: 175 }} |
680 | 680 | > |
|
0 commit comments