Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/components/LiteGraphCanvasSplitterOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
>
<SplitterPanel
v-if="sidebarLocation === 'left' && !focusMode"
class="side-bar-panel bg-comfy-menu-bg pointer-events-auto"
:class="
cn(
'side-bar-panel bg-comfy-menu-bg pointer-events-auto',
sidebarPanelVisible && 'min-w-78'
)
"
:min-size="10"
:size="20"
:style="{
Expand Down Expand Up @@ -70,7 +75,12 @@

<SplitterPanel
v-if="sidebarLocation === 'right' && !focusMode"
class="side-bar-panel pointer-events-auto"
:class="
cn(
'side-bar-panel pointer-events-auto',
sidebarPanelVisible && 'min-w-78'
)
"
:min-size="10"
:size="20"
:style="{
Expand Down
6 changes: 4 additions & 2 deletions src/components/sidebar/tabs/AssetsSidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ useResizeObserver(footerRef, (entries) => {
})

// Determine if we should show compact mode (icon only)
// Threshold: 350px or less shows icon only
// Threshold matches when grid switches from 2 columns to 1 column
// 2 columns need about ~430px
const COMPACT_MODE_THRESHOLD_PX = 430
const isCompact = computed(
() => footerWidth.value > 0 && footerWidth.value <= 350
() => footerWidth.value > 0 && footerWidth.value <= COMPACT_MODE_THRESHOLD_PX
)

// Hover state for selection count button
Expand Down