fix(ui): prevent Code Editor drawer from collapsing when content is empty (#25855)

This commit is contained in:
G30
2026-06-16 21:06:15 -04:00
committed by GitHub
parent 17df026492
commit dfdb76cc46

View File

@@ -20,13 +20,13 @@
let _content = $state(value);
$effect(() => {
if (_content) {
if (_content !== undefined && _content !== null) {
value = _content;
}
});
</script>
<Drawer bind:show>
<Drawer bind:show className="h-full">
<div class="flex h-full flex-col">
<div
class=" sticky top-0 z-30 flex justify-between bg-white px-4.5 pt-3 pb-3 dark:bg-gray-900 dark:text-gray-100"