feat: implementation of step 5 of the plan - still not fully done
This commit is contained in:
672
priv/ui/app.css
672
priv/ui/app.css
@@ -2598,6 +2598,513 @@ button svg * {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.media-editor {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
|
||||
gap: 20px;
|
||||
padding: 20px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.media-editor-details-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.translation-modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.68);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
pointer-events: auto;
|
||||
z-index: 10001;
|
||||
}
|
||||
|
||||
.translation-modal {
|
||||
width: min(640px, calc(100vw - 32px));
|
||||
background: #1e1e1e;
|
||||
border: 1px solid #3c3c3c;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.translation-modal-header,
|
||||
.translation-modal-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
}
|
||||
|
||||
.translation-modal-header {
|
||||
border-bottom: 1px solid #3c3c3c;
|
||||
}
|
||||
|
||||
.translation-modal-footer {
|
||||
border-top: 1px solid #3c3c3c;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.translation-modal-body {
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.translation-modal-close {
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: #c5c5c5;
|
||||
cursor: pointer;
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.settings-view-shell,
|
||||
.style-view,
|
||||
.tags-view-shell,
|
||||
.scripts-view-shell,
|
||||
.templates-view-shell,
|
||||
.chat-panel {
|
||||
height: 100%;
|
||||
background: var(--panel-1, #1e1e1e);
|
||||
}
|
||||
|
||||
.settings-view,
|
||||
.tags-view,
|
||||
.style-view {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.settings-header,
|
||||
.style-view-header,
|
||||
.tags-view-header,
|
||||
.chat-panel-header {
|
||||
padding: 18px 20px;
|
||||
border-bottom: 1px solid var(--line, #3c3c3c);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.settings-search input {
|
||||
width: min(320px, 40vw);
|
||||
}
|
||||
|
||||
.settings-content,
|
||||
.tags-view-content {
|
||||
padding: 20px;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.setting-section,
|
||||
.tags-section {
|
||||
border: 1px solid var(--line, #3c3c3c);
|
||||
border-radius: 12px;
|
||||
background: var(--panel-2, #252526);
|
||||
}
|
||||
|
||||
.setting-section-header,
|
||||
.tags-section-header {
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--line, #3c3c3c);
|
||||
}
|
||||
|
||||
.setting-section-content,
|
||||
.tags-section-content {
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.setting-row,
|
||||
.tag-form-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
|
||||
gap: 16px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.tag-form-row {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.setting-label {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.setting-control,
|
||||
.setting-input-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.setting-actions {
|
||||
padding: 0 16px 16px;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.style-theme-picker {
|
||||
padding: 20px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.style-theme-option {
|
||||
border: 1px solid var(--line, #3c3c3c);
|
||||
background: var(--panel-2, #252526);
|
||||
border-radius: 14px;
|
||||
padding: 14px;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.style-theme-option.selected {
|
||||
border-color: var(--accent-color);
|
||||
box-shadow: 0 0 0 1px var(--accent-color);
|
||||
}
|
||||
|
||||
.style-theme-swatch {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.style-theme-tones {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.style-theme-tone {
|
||||
height: 42px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.style-apply-row {
|
||||
padding: 0 20px 20px;
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.style-preview-container {
|
||||
padding: 0 20px 20px;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.style-preview-frame {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 420px;
|
||||
border: 1px solid var(--line, #3c3c3c);
|
||||
border-radius: 14px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.tag-cloud {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.tag-cloud-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--line, #3c3c3c);
|
||||
background: var(--panel-1, #1e1e1e);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tag-cloud-item.selected {
|
||||
border-color: var(--accent-color);
|
||||
box-shadow: 0 0 0 1px var(--accent-color);
|
||||
}
|
||||
|
||||
.scripts-view-shell,
|
||||
.templates-view-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.scripts-view,
|
||||
.templates-view {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.scripts-header,
|
||||
.templates-header {
|
||||
border-bottom: 1px solid var(--line, #3c3c3c);
|
||||
}
|
||||
|
||||
.scripts-meta-row,
|
||||
.templates-meta-row {
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid var(--line, #3c3c3c);
|
||||
}
|
||||
|
||||
.editor-field-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.scripts-editor,
|
||||
.templates-editor {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.scripts-monaco,
|
||||
.templates-monaco {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding: 0 20px 20px;
|
||||
}
|
||||
|
||||
.code-editor-textarea {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 420px;
|
||||
resize: vertical;
|
||||
font: 13px/1.5 "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
|
||||
}
|
||||
|
||||
.editor-footer {
|
||||
padding: 12px 20px 20px;
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
border-top: 1px solid var(--line, #3c3c3c);
|
||||
}
|
||||
|
||||
.chat-panel {
|
||||
height: 100%;
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.chat-panel-title {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.chat-messages {
|
||||
padding: 20px;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.chat-message {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.chat-message.user {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.chat-message-content {
|
||||
max-width: min(760px, 100%);
|
||||
border: 1px solid var(--line, #3c3c3c);
|
||||
border-radius: 14px;
|
||||
padding: 14px 16px;
|
||||
background: var(--panel-2, #252526);
|
||||
}
|
||||
|
||||
.chat-message.user .chat-message-content {
|
||||
background: rgba(0, 122, 204, 0.15);
|
||||
}
|
||||
|
||||
.chat-input-container {
|
||||
padding: 16px 20px 20px;
|
||||
border-top: 1px solid var(--line, #3c3c3c);
|
||||
}
|
||||
|
||||
.chat-input-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.chat-input {
|
||||
min-height: 48px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.chat-send-button {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.chat-welcome {
|
||||
margin: auto;
|
||||
max-width: 560px;
|
||||
text-align: center;
|
||||
color: var(--vscode-descriptionForeground);
|
||||
}
|
||||
|
||||
.chat-welcome ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 18px 0 0;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.misc-editor-shell {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--panel-1, #1e1e1e);
|
||||
}
|
||||
|
||||
.misc-editor-header {
|
||||
padding: 18px 20px;
|
||||
border-bottom: 1px solid var(--line, #3c3c3c);
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.misc-editor-header h2,
|
||||
.misc-card h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.misc-editor-header p {
|
||||
margin: 6px 0 0;
|
||||
color: var(--vscode-descriptionForeground);
|
||||
}
|
||||
|
||||
.misc-editor-actions,
|
||||
.misc-editor-summary {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.misc-editor-summary {
|
||||
padding: 14px 20px;
|
||||
border-bottom: 1px solid var(--line, #3c3c3c);
|
||||
}
|
||||
|
||||
.misc-summary-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 10px;
|
||||
border-radius: 999px;
|
||||
background: var(--panel-2, #252526);
|
||||
border: 1px solid var(--line, #3c3c3c);
|
||||
}
|
||||
|
||||
.misc-editor-content {
|
||||
padding: 20px;
|
||||
overflow: auto;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.misc-columns {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.misc-card,
|
||||
.misc-list-item {
|
||||
border: 1px solid var(--line, #3c3c3c);
|
||||
border-radius: 12px;
|
||||
background: var(--panel-2, #252526);
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.misc-card ul,
|
||||
.misc-list {
|
||||
margin: 12px 0 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.misc-list-item header,
|
||||
.duplicate-pair-row {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.misc-list-item ul li {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.misc-code-card pre {
|
||||
margin: 0;
|
||||
white-space: pre-wrap;
|
||||
font: 12px/1.5 "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
|
||||
}
|
||||
|
||||
.linkish {
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--accent-color);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.media-editor,
|
||||
.setting-row,
|
||||
.tag-form-row,
|
||||
.editor-field-row,
|
||||
.duplicate-pair-row,
|
||||
.misc-list-item ul li {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.style-theme-picker {
|
||||
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.insert-modal-results,
|
||||
.insert-media-grid,
|
||||
.shared-popover-list,
|
||||
@@ -2833,6 +3340,171 @@ button svg * {
|
||||
|
||||
.lightbox-image-container {
|
||||
max-width: 90%;
|
||||
|
||||
.media-editor {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.media-editor-form {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
|
||||
gap: 20px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.media-preview,
|
||||
.media-translations-section,
|
||||
.linked-posts-section {
|
||||
border: 1px solid rgba(148, 163, 184, 0.24);
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.84);
|
||||
}
|
||||
|
||||
.media-preview {
|
||||
min-height: 260px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.media-preview-image,
|
||||
.media-preview-image img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.media-preview-image img {
|
||||
display: block;
|
||||
max-height: 460px;
|
||||
object-fit: contain;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.media-preview-placeholder {
|
||||
min-height: 220px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.media-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.media-translations-section,
|
||||
.linked-posts-section {
|
||||
margin-top: 2px;
|
||||
padding: 14px 16px;
|
||||
}
|
||||
|
||||
.linked-posts-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.linked-post-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.linked-post-link {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
color: #0f172a;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.unlink-btn,
|
||||
.add-link-btn {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.add-link-btn {
|
||||
margin-left: 10px;
|
||||
color: #2563eb;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.unlink-btn {
|
||||
color: #b91c1c;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.post-picker {
|
||||
margin-top: 10px;
|
||||
padding: 12px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.22);
|
||||
background: rgba(248, 250, 252, 0.9);
|
||||
}
|
||||
|
||||
.post-picker-search input,
|
||||
.translation-inline-form .post-editor-input,
|
||||
.translation-inline-form .post-editor-textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.post-picker-list {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.post-picker-item,
|
||||
.post-picker-more,
|
||||
.no-linked-posts,
|
||||
.no-posts {
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.post-picker-item {
|
||||
border: 0;
|
||||
background: rgba(37, 99, 235, 0.08);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.post-picker-more,
|
||||
.no-linked-posts,
|
||||
.no-posts {
|
||||
color: #64748b;
|
||||
background: rgba(226, 232, 240, 0.4);
|
||||
}
|
||||
|
||||
.translation-inline-form {
|
||||
margin-top: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.translation-inline-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.media-editor-form {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
max-height: 78%;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user