Skip to content

Commit 8981f81

Browse files
committed
options search result ui fix
1 parent 4f804a0 commit 8981f81

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

extension/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"webextension-polyfill": "^0.10.0"
2929
},
3030
"dependencies": {
31-
"@neodrag/svelte": "^2.0.3",
31+
"@neodrag/svelte": "^2.0.4",
3232
"@tailwindcss/container-queries": "^0.1.1",
3333
"emoji-picker-element": "^1.21.3",
3434
"fuse.js": "^7.0.0",

extension/src/pages/MainView/MainView.svelte

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
<div
483483
class="
484484
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]' : ''}
486486
py-2 px-0 @[184px]:p-2 [--header-height:_3rem] @[56px]:[--header-height:_3.5rem] @[184px]:[--header-height:_3.625rem]
487487
"
488488
>
@@ -644,7 +644,7 @@
644644
content-start overflow-auto
645645
h-full
646646
max-h-[calc(100cqh_-_var(--header-height)_-_9.75rem)]
647-
min-h-16
647+
{searchValue.length && matchingTabs.length ? 'min-h-10' : 'min-h-16'}
648648
[scrollbar-width:_none] [scrollbar-color:transparent_transparent]
649649
hover:[scrollbar-width:_thin] focus-within:[scrollbar-width:_thin]
650650
hover:[scrollbar-color:initial] focus-within:[scrollbar-color:initial]
@@ -663,18 +663,18 @@
663663
{i18n.getMessage('search_no_matches')}
664664
</p>
665665
{/if}
666-
<li class="">
667-
{#if !searchUnmatchingWorkspaceUUIDS.includes('HOME')}
666+
{#if !searchUnmatchingWorkspaceUUIDS.includes('HOME')}
667+
<li class="[&+div]:mt-4">
668668
{@render SWorkspace(homeWorkspace, 0)}
669-
{/if}
670-
</li>
669+
</li>
670+
{/if}
671671
<!-- viewWorkspaces.length !== workspaces.length || workspaces.length < 2, -->
672672
<div
673-
class="w-full grid gap-4 mt-4 empty:mt-0 {searchValue.length ? 'mt-0' : ''}"
673+
class="w-full grid gap-4"
674674
>
675675
{#each viewWorkspaces as workspace, i (workspace.UUID)}
676676
<li
677-
class="item relative max-w-[100cqw]"
677+
class="item relative max-w-[100cqw] !h-max"
678678
use:draggable={dragOptions}
679679
transition:slide={{ delay: 0, duration: 175 }}
680680
>

0 commit comments

Comments
 (0)