add block previews, picker thumbnails and newsletter settings
All checks were successful
deploy / deploy (push) Successful in 1m30s

Block cards now show a one-line content summary below the name.
Block picker items include SVG wireframe thumbnails. Newsletter
block marked as decorative with configurable title/description
and form submission prevented on the shop side.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-28 20:34:52 +00:00
parent 0a7982dfe8
commit 8f989d892d
6 changed files with 636 additions and 12 deletions

View File

@@ -1453,11 +1453,23 @@
flex-shrink: 0;
}
.block-card-name {
.block-card-info {
flex: 1;
min-width: 0;
}
.block-card-name {
font-size: 0.875rem;
font-weight: 500;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.block-card-preview {
display: block;
font-size: 0.75rem;
color: color-mix(in oklch, var(--t-text-primary) 50%, transparent);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -1567,13 +1579,25 @@
}
}
.block-picker-thumb {
grid-column: 1 / -1;
width: 100%;
height: auto;
border-radius: 0.25rem;
background: color-mix(in oklch, var(--t-text-primary) 3%, transparent);
margin-bottom: 0.25rem;
}
.block-picker-item > .size-5 {
grid-row: 1 / -1;
margin-top: 0.0625rem;
}
.block-picker-item-desc {
.block-picker-item-name {
grid-column: 2;
}
.block-picker-item-desc {
grid-column: 1 / -1;
font-size: 0.6875rem;
line-height: 1.3;
color: color-mix(in oklch, var(--t-text-primary) 55%, transparent);
@@ -1606,6 +1630,26 @@
/* Block settings panel */
.block-settings-hint {
display: flex;
align-items: flex-start;
gap: 0.375rem;
font-size: 0.75rem;
color: color-mix(in oklch, var(--t-text-primary) 60%, transparent);
background: color-mix(in oklch, var(--t-accent) 8%, transparent);
border: 1px solid color-mix(in oklch, var(--t-accent) 20%, transparent);
border-radius: 0.375rem;
padding: 0.5rem 0.625rem;
margin-bottom: 0.5rem;
line-height: 1.4;
}
.block-settings-hint svg {
flex-shrink: 0;
color: var(--t-accent);
margin-top: 0.05rem;
}
.block-card-settings {
padding: 0.75rem 0.75rem 0.25rem;
padding-left: 2.75rem;