Implement email tab redesign, archive support, manual Q&A creation, URL linking, and question admin tools
- Add dedicated Emails tab with inbox/archive views and two-pane layout - Implement archive/unarchive for contact submissions with persisted state - Add manual question creation endpoint and admin form (non-contact origin) - Implement URL auto-linking in Q&A answers with safe rendering - Add question admin tools: search, filter (All/Pending/Approved/Answered/Unanswered), pagination - Expand admin panel widths to reduce cramping - Restore and enhance Asset Manager table layout - Update email reply template with fixed from-address and HTML support
This commit is contained in:
+177
-3
@@ -2333,13 +2333,14 @@
|
||||
}
|
||||
|
||||
.admin-visits-table-scroll {
|
||||
overflow-x: auto;
|
||||
overflow-x: visible;
|
||||
}
|
||||
|
||||
.admin-visits-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
min-width: 920px;
|
||||
min-width: 0;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.admin-visits-table th,
|
||||
@@ -2350,6 +2351,9 @@
|
||||
font-family: var(--brand-font-body);
|
||||
color: var(--brand-warm-white);
|
||||
font-size: 0.9rem;
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.admin-visits-table th {
|
||||
@@ -3409,6 +3413,17 @@
|
||||
line-height: 1.75;
|
||||
color: var(--brand-warm-white);
|
||||
opacity: 0.92;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.qa-answer-text a {
|
||||
color: #e0c070;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.18em;
|
||||
}
|
||||
|
||||
.qa-answer-text a:hover {
|
||||
color: #f0ead8;
|
||||
}
|
||||
|
||||
.qa-flip-hint {
|
||||
@@ -3799,7 +3814,7 @@
|
||||
}
|
||||
|
||||
.admin-panel-section {
|
||||
max-width: 740px;
|
||||
max-width: 1240px;
|
||||
}
|
||||
|
||||
.admin-panel-head {
|
||||
@@ -3941,6 +3956,165 @@
|
||||
border-color: rgba(201,168,76,0.4);
|
||||
}
|
||||
|
||||
.btn-admin-reset--compact {
|
||||
padding: 0.45rem 0.75rem;
|
||||
border-radius: 8px;
|
||||
font-size: 0.78rem;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.admin-assets-table {
|
||||
table-layout: auto;
|
||||
}
|
||||
|
||||
.admin-assets-table th,
|
||||
.admin-assets-table td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.admin-assets-table th:nth-child(1),
|
||||
.admin-assets-table td:nth-child(1) {
|
||||
width: 96px;
|
||||
}
|
||||
|
||||
.admin-assets-table th:nth-child(2),
|
||||
.admin-assets-table td:nth-child(2) {
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
.admin-assets-table th:nth-child(5),
|
||||
.admin-assets-table td:nth-child(5) {
|
||||
min-width: 240px;
|
||||
}
|
||||
|
||||
.admin-assets-table th:nth-child(6),
|
||||
.admin-assets-table td:nth-child(6) {
|
||||
min-width: 170px;
|
||||
}
|
||||
|
||||
.admin-asset-thumb {
|
||||
display: block;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(201, 168, 76, 0.25);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
.admin-asset-tags-input {
|
||||
width: 100%;
|
||||
min-width: 220px;
|
||||
background: #111;
|
||||
border: 1px solid rgba(201, 168, 76, 0.24);
|
||||
border-radius: 6px;
|
||||
color: var(--brand-warm-white);
|
||||
padding: 0.5rem 0.65rem;
|
||||
}
|
||||
|
||||
.admin-asset-actions-inline {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.admin-email-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
|
||||
gap: 1rem;
|
||||
margin-top: 0.9rem;
|
||||
}
|
||||
|
||||
.admin-email-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
max-height: 580px;
|
||||
overflow-y: auto;
|
||||
padding-right: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-email-list-item {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: #12110d;
|
||||
border: 1px solid rgba(201, 168, 76, 0.2);
|
||||
border-radius: 12px;
|
||||
padding: 0.75rem 0.85rem;
|
||||
color: var(--brand-warm-white);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.admin-email-list-item--active {
|
||||
border-color: rgba(201, 168, 76, 0.55);
|
||||
box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35) inset;
|
||||
}
|
||||
|
||||
.admin-email-list-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.6rem;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.admin-email-list-head span {
|
||||
color: var(--brand-muted);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.admin-email-list-item p {
|
||||
margin: 0;
|
||||
color: rgba(240, 234, 216, 0.78);
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.45;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-email-detail {
|
||||
background: #11100d;
|
||||
border: 1px solid rgba(201, 168, 76, 0.2);
|
||||
border-radius: 12px;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.admin-email-meta p {
|
||||
margin: 0 0 0.35rem;
|
||||
}
|
||||
|
||||
.admin-email-body {
|
||||
margin-top: 0.8rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid rgba(201, 168, 76, 0.18);
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.admin-email-body p {
|
||||
margin: 0;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.admin-email-action-btn {
|
||||
border-radius: 10px;
|
||||
min-width: 112px;
|
||||
padding: 0.58rem 0.95rem;
|
||||
white-space: nowrap;
|
||||
text-transform: none;
|
||||
letter-spacing: 0.03em;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.admin-email-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.admin-email-list {
|
||||
max-height: 280px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.admin-sidebar {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user