feat(cms): improve admin content editing

This commit is contained in:
Schubert Ferenc 2026-07-04 11:01:29 +02:00
parent 12d31f5468
commit a284bbc188
26 changed files with 362 additions and 147 deletions

View file

@ -630,7 +630,7 @@ h3 {
.admin-kpis {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 14px;
margin-bottom: 18px;
}
@ -1039,6 +1039,11 @@ h3 {
margin-bottom: 0;
}
.content-save-actions {
display: flex;
justify-content: flex-end;
}
.content-editor-heading {
margin: 14px 0 0;
border-top: 1px solid var(--line);
@ -1094,6 +1099,27 @@ h3 {
padding: 14px;
}
.content-image-picker {
display: grid;
gap: 10px;
}
.content-image-preview {
display: grid;
grid-template-columns: minmax(140px, 240px) auto;
gap: 12px;
align-items: end;
}
.content-image-preview img {
width: 100%;
aspect-ratio: 16 / 9;
border: 1px solid var(--line);
border-radius: 8px;
background: #f8fafc;
object-fit: cover;
}
.content-preview-card {
overflow: hidden;
}
@ -1110,6 +1136,10 @@ h3 {
margin-bottom: 0;
}
.content-preview-toolbar .eyebrow {
margin-bottom: 4px;
}
.content-preview-toolbar div {
display: flex;
flex-wrap: wrap;
@ -1273,4 +1303,16 @@ h3 {
.content-field-grid {
grid-template-columns: 1fr;
}
.content-editor-top,
.content-preview-toolbar,
.content-image-preview {
grid-template-columns: 1fr;
align-items: stretch;
}
.content-editor-top,
.content-preview-toolbar {
display: grid;
}
}