Skip to content

Commit eb0fb30

Browse files
committed
style: Moving the Asset buttons up to allow the search bars to align
1 parent 0788df0 commit eb0fb30

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

src/components/sidebar/tabs/AssetsSidebarTab.vue

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@
2323
</div>
2424
</div>
2525
</template>
26+
<template #tool-buttons>
27+
<!-- Normal Tab View -->
28+
<TabList
29+
v-if="!isInFolderView"
30+
v-model="activeTab"
31+
class="font-inter px-2 2xl:px-4"
32+
>
33+
<Tab class="font-inter" value="output">{{
34+
$t('sideToolbar.labels.generated')
35+
}}</Tab>
36+
<Tab class="font-inter" value="input">{{
37+
$t('sideToolbar.labels.imported')
38+
}}</Tab>
39+
</TabList>
40+
</template>
2641
<template #header>
2742
<!-- Job Detail View Header -->
2843
<div v-if="isInFolderView" class="px-2 2xl:px-4">
@@ -36,15 +51,7 @@
3651
</template>
3752
</IconTextButton>
3853
</div>
39-
<!-- Normal Tab View -->
40-
<TabList v-else v-model="activeTab" class="font-inter px-2 2xl:px-4">
41-
<Tab class="font-inter" value="output">{{
42-
$t('sideToolbar.labels.generated')
43-
}}</Tab>
44-
<Tab class="font-inter" value="input">{{
45-
$t('sideToolbar.labels.imported')
46-
}}</Tab>
47-
</TabList>
54+
4855
<!-- Filter Bar -->
4956
<MediaAssetFilterBar
5057
v-model:search-query="searchQuery"
@@ -55,6 +62,7 @@
5562
/>
5663
</template>
5764
<template #body>
65+
<Divider type="dashed" class="m-2" />
5866
<!-- Loading state -->
5967
<div v-if="loading">
6068
<ProgressSpinner class="absolute left-1/2 w-[50px] -translate-x-1/2" />
@@ -174,6 +182,7 @@
174182

175183
<script setup lang="ts">
176184
import { useDebounceFn, useElementHover, useResizeObserver } from '@vueuse/core'
185+
import { Divider } from 'primevue'
177186
import ProgressSpinner from 'primevue/progressspinner'
178187
import { useToast } from 'primevue/usetoast'
179188
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'

src/components/sidebar/tabs/SidebarTabTemplate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
>
66
<div class="comfy-vue-side-bar-header flex flex-col gap-2">
77
<Toolbar
8-
class="min-h-15.5 bg-transparent rounded-none border-x-0 border-t-0 px-2 2xl:px-4"
8+
class="min-h-16 bg-transparent rounded-none border-x-0 border-t-0 px-2 2xl:px-4"
99
>
1010
<template #start>
1111
<span class="truncate font-bold" :title="props.title">

src/platform/assets/components/MediaAssetFilterBar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<SearchBox
44
:model-value="searchQuery"
55
:placeholder="$t('sideToolbar.searchAssets') + '...'"
6-
size="lg"
76
@update:model-value="handleSearchChange"
87
/>
98
<MediaAssetFilterButton

0 commit comments

Comments
 (0)