feat: manage image captions and tags from the admin panel
This commit is contained in:
4 files changed
+409
-84
No files matched your search
@@ -1132,3 +1132,127 @@ dialog::backdrop {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Image metadata administration */
|
||||
.admin-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin: 20px 0;
|
||||
color: var(--outline);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.admin-toolbar input,
|
||||
.admin-toolbar select,
|
||||
.metadata-editor textarea {
|
||||
background: var(--surface, #080808);
|
||||
border: 1px solid var(--outline-variant);
|
||||
color: var(--on-surface, #eee);
|
||||
padding: 10px;
|
||||
font: inherit;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.admin-toolbar input:focus,
|
||||
.admin-toolbar select:focus,
|
||||
.metadata-editor textarea:focus {
|
||||
outline: 1px solid var(--primary);
|
||||
}
|
||||
|
||||
.admin-tag-manager {
|
||||
border: 1px solid var(--outline-variant);
|
||||
padding: 16px;
|
||||
color: var(--outline);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.admin-tag-manager summary {
|
||||
color: var(--primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.admin-tag-list,
|
||||
.image-tag-options {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.admin-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
border: 1px solid var(--outline-variant);
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.metadata-editor {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
color: var(--outline);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.metadata-editor textarea {
|
||||
width: 100%;
|
||||
resize: vertical;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.metadata-editor fieldset {
|
||||
min-width: 0;
|
||||
border: 1px solid var(--outline-variant);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.image-tag-options {
|
||||
max-height: 160px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.image-tag-options label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.image-tag-options input {
|
||||
accent-color: var(--primary);
|
||||
}
|
||||
|
||||
.admin-pagination {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-busy button:not(#stop-generation),
|
||||
.admin-busy input,
|
||||
.admin-busy textarea,
|
||||
.admin-busy select {
|
||||
pointer-events: none;
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
.admin-toolbar [hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.admin-page .topbar {
|
||||
position: sticky;
|
||||
height: auto;
|
||||
min-height: 64px;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
padding-block: 12px;
|
||||
}
|
||||
|
||||
.admin-page .shell {
|
||||
padding-top: 24px;
|
||||
}
|
||||
Reference in new issue
Block a user