Admin polish: stability fixes, schema security, consistent UI + sidebar #1

Merged
reudy merged 21 commits from session/polish into main 2026-10-07 16:30:40 +02:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 015ce2a63f - Show all commits

View file

@ -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"

View file

@ -126,7 +126,7 @@
<div class="rounded-box bg-base-100 p-4 shadow">
<div class="dropdown w-full">
<button class="btn btn-primary w-full" type="button" tabindex="0">Add block</button>
<ul class="menu dropdown-content z-10 mt-2 w-full rounded-box bg-base-100 p-2 shadow">
<ul class="menu dropdown-content z-20 mt-2 w-full rounded-box bg-base-100 p-2 shadow-lg">
{#each blockTypes as type}
<li><button type="button" onclick={() => addBlock(type)}>{blockLabels[type]}</button></li>
{/each}