Skip to content

Commit c1424e8

Browse files
committed
style: Spacing
1 parent be4f173 commit c1424e8

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

src/components/sidebar/tabs/AssetsSidebarTab.vue

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,13 @@
22
<SidebarTabTemplate
33
:title="isInFolderView ? '' : $t('sideToolbar.mediaAssets.title')"
44
>
5-
<template #tool-buttons>
6-
<!-- Fake Button for sizing consistency -->
7-
<Button
8-
icon="pi pi-folder-plus"
9-
text
10-
severity="secondary"
11-
class="invisible w-0"
12-
disabled
13-
/>
14-
</template>
155
<template #alt-title>
166
<div
177
v-if="isInFolderView"
188
class="flex w-full items-center justify-between gap-2"
199
>
2010
<div class="flex items-center gap-2">
21-
<span>{{ $t('Job ID') }}:</span>
11+
<span class="font-bold">{{ $t('Job ID') }}:</span>
2212
<span class="text-sm">{{ folderPromptId?.substring(0, 8) }}</span>
2313
<button
2414
class="m-0 cursor-pointer border-0 bg-transparent p-0 outline-0"
@@ -35,7 +25,7 @@
3525
</template>
3626
<template #header>
3727
<!-- Job Detail View Header -->
38-
<div v-if="isInFolderView" class="p-2 2xl:p-4">
28+
<div v-if="isInFolderView" class="px-2 2xl:px-4">
3929
<IconTextButton
4030
:label="$t('sideToolbar.backToAssets')"
4131
type="secondary"
@@ -47,7 +37,7 @@
4737
</IconTextButton>
4838
</div>
4939
<!-- Normal Tab View -->
50-
<TabList v-else v-model="activeTab" class="pt-2 px-2 2xl:px-4">
40+
<TabList v-else v-model="activeTab" class="px-2 2xl:px-4">
5141
<Tab value="output">{{ $t('sideToolbar.labels.generated') }}</Tab>
5242
<Tab value="input">{{ $t('sideToolbar.labels.imported') }}</Tab>
5343
</TabList>
@@ -56,7 +46,7 @@
5646
v-model:search-query="searchQuery"
5747
v-model:sort-by="sortBy"
5848
v-model:media-type-filters="mediaTypeFilters"
59-
class="pt-2 pb-1 px-2 2xl:px-4"
49+
class="pb-1 px-2 2xl:px-4"
6050
:show-generation-time-sort="activeTab === 'output'"
6151
/>
6252
</template>
@@ -180,7 +170,6 @@
180170

181171
<script setup lang="ts">
182172
import { useDebounceFn, useElementHover, useResizeObserver } from '@vueuse/core'
183-
import { Button } from 'primevue'
184173
import ProgressSpinner from 'primevue/progressspinner'
185174
import { useToast } from 'primevue/usetoast'
186175
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'

src/components/sidebar/tabs/SidebarTabTemplate.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
class="comfy-vue-side-bar-container group/sidebar-tab flex h-full flex-col"
44
:class="props.class"
55
>
6-
<div class="comfy-vue-side-bar-header">
6+
<div class="comfy-vue-side-bar-header flex flex-col gap-2">
77
<Toolbar
8-
class="min-h-9 rounded-none border-x-0 border-t-0 px-2 2xl:px-4 py-1"
8+
class="min-h-15.5 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">
@@ -14,11 +14,11 @@
1414
<slot name="alt-title" />
1515
</template>
1616
<template #end>
17-
<div
17+
<!-- <div
1818
class="touch:w-auto touch:opacity-100 flex flex-row transition-all duration-200 motion-safe:w-0 motion-safe:opacity-0 motion-safe:group-focus-within/sidebar-tab:w-auto motion-safe:group-focus-within/sidebar-tab:opacity-100 motion-safe:group-hover/sidebar-tab:w-auto motion-safe:group-hover/sidebar-tab:opacity-100"
19-
>
20-
<slot name="tool-buttons" />
21-
</div>
19+
> -->
20+
<slot name="tool-buttons" />
21+
<!-- </div> -->
2222
</template>
2323
</Toolbar>
2424
<slot name="header" />

0 commit comments

Comments
 (0)