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

This commit is contained in:
G30 authored and GitHub committed 2026-06-17 03:06:15 +02:00
1 parent 17df026492
commit dfdb76cc46
1 file changed
+2 -2
@@ -20,13 +20,13 @@
let _content = $state(value); let _content = $state(value);
$effect(() => { $effect(() => {
if (_content) { if (_content !== undefined && _content !== null) {
value = _content; value = _content;
} }
}); });
</script> </script>
<Drawer bind:show> <Drawer bind:show className="h-full">
<div class="flex h-full flex-col"> <div class="flex h-full flex-col">
<div <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" 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"