frontend: preview

This commit is contained in:
2025-10-10 18:59:19 +02:00
parent dfadc8ba23
commit 5fd4a41e64
2 changed files with 384 additions and 70 deletions
+104 -2
View File
@@ -173,6 +173,89 @@ button.icon-button.ghost:hover:not([disabled]) {
overflow: hidden;
}
.preview-main {
flex: 1;
display: flex;
flex-direction: column;
padding: 0.75rem 1.5rem 1.25rem;
min-height: 0;
overflow: hidden;
}
.preview-workspace {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.75rem;
min-height: 0;
}
.preview-workspace__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.preview-workspace__meta {
display: flex;
align-items: center;
gap: 0.75rem;
}
.preview-workspace__meta h2 {
margin: 0;
font-size: 1.1rem;
}
.preview-workspace__meta .meta {
display: block;
font-size: 0.8rem;
color: var(--muted);
}
.preview-workspace__actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.preview-workspace__body {
flex: 1;
background: var(--surface-subtle);
border: 1px solid var(--border);
border-radius: 2px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.preview-workspace__object {
width: 100%;
height: 100%;
border: none;
}
.preview-workspace__message {
color: var(--muted);
font-size: 0.95rem;
}
.preview-workspace__metadata {
border: 1px solid var(--border);
border-radius: 2px;
padding: 0.75rem;
background: var(--surface);
max-height: 180px;
overflow: auto;
}
.preview-workspace__metadata h3 {
margin: 0 0 0.5rem;
font-size: 0.9rem;
}
.column {
background: transparent;
border: none;
@@ -381,8 +464,8 @@ button.icon-button.ghost:hover:not([disabled]) {
width: 36px;
height: 48px;
object-fit: cover;
border-radius: 0;
box-shadow: none;
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.thumb-placeholder {
@@ -526,6 +609,25 @@ button.icon-button.ghost:hover:not([disabled]) {
margin: 0.6rem 0;
}
.preview-pane {
margin-top: 0.4rem;
border: 1px solid var(--border);
border-radius: 2px;
background: var(--surface-subtle);
min-height: 220px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.preview-object {
width: 100%;
height: 320px;
border: none;
background: var(--surface);
}
.thumbnail-preview {
display: flex;
flex-direction: column;