mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(ui): keep listbox panel width after live refresh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
091fdf1ebe
commit
e4c1e1a6b3
@@ -216,7 +216,14 @@
|
||||
);
|
||||
|
||||
// Kept in state for the :style binding, because a Livewire morph resets the inline style.
|
||||
this.panelPosition = { top: `${top}px`, left: `${left}px`, width: `${panelWidth}px` };
|
||||
// minWidth and maxWidth too: a fixed panel resolves the CSS min-width: 100% against the viewport.
|
||||
this.panelPosition = {
|
||||
top: `${top}px`,
|
||||
left: `${left}px`,
|
||||
width: `${panelWidth}px`,
|
||||
minWidth: panel.style.minWidth,
|
||||
maxWidth: panel.style.maxWidth,
|
||||
};
|
||||
this.positioned = true;
|
||||
},
|
||||
}" x-modelable="value" :class="{ 'pointer-events-none opacity-70': saving }"
|
||||
|
||||
Reference in New Issue
Block a user