fix(ui): prevent Code Editor drawer from collapsing when content is empty (#25855)
This commit is contained in:
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"
|
||||||
|
|||||||
Reference in new issue
Block a user