Fix block Delete buttons painting over the "Add block" menu
The Delete label in each block row is `relative z-10` (to sit above its hold-to-delete fill) — the same z-index as the dropdown, and later in the DOM, so it painted on top of the open menu. Each row is now `isolate` (its z-indexed layers stay inside it) and the dropdowns in the page and email editors sit at z-20. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KgF3Kf47LjPGHKQHszpUAv
This commit is contained in:
parent
c54da8728e
commit
015ce2a63f
2 changed files with 4 additions and 2 deletions
|
|
@ -49,10 +49,12 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<!-- `isolate` on each row: the delete button's z-indexed layers must stay
|
||||
inside their row, or they paint over dropdowns like "Add block". -->
|
||||
<ul class="space-y-2">
|
||||
{#each blocks as block, i (block.id)}
|
||||
<li
|
||||
class="flex items-center gap-2 rounded-box border bg-base-100 p-2 pl-3 shadow-sm transition-colors {selectedId === block.id ? 'border-primary ring-1 ring-primary' : 'border-base-300 hover:border-base-content/30'}"
|
||||
class="isolate flex items-center gap-2 rounded-box border bg-base-100 p-2 pl-3 shadow-sm transition-colors {selectedId === block.id ? 'border-primary ring-1 ring-primary' : 'border-base-300 hover:border-base-content/30'}"
|
||||
class:opacity-50={dragIndex === i}
|
||||
class:border-dashed={dropIndex === i && dragIndex !== i}
|
||||
draggable="true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue