feat(khira): application-oriented error form with drafts and database cleanup
This commit is contained in:
@@ -2394,3 +2394,206 @@ dd { word-break: break-word; }
|
||||
border: 1px dashed rgba(56, 189, 248, 0.5) !important;
|
||||
border-radius: 18px !important;
|
||||
}
|
||||
|
||||
/* ── Application-Oriented Error Form & Drafts System ── */
|
||||
#dlg.wide {
|
||||
width: min(720px, calc(100% - 32px));
|
||||
}
|
||||
|
||||
.err-form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.err-form-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
.err-form-full {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.form-seg-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
.form-seg-label {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--on-sv);
|
||||
}
|
||||
.seg-pills {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
padding: 4px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
.seg-pill {
|
||||
flex: 1;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
padding: 8px 12px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--on-sv);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.seg-pill:hover {
|
||||
color: var(--on-s);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
.seg-pill.on {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
.seg-pill.bug-pill.on {
|
||||
background: linear-gradient(135deg, rgba(234, 179, 8, 0.35) 0%, rgba(202, 138, 4, 0.2) 100%);
|
||||
color: #fef08a;
|
||||
border: 1px solid rgba(250, 204, 21, 0.4);
|
||||
}
|
||||
.seg-pill.crash-pill.on {
|
||||
background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(185, 28, 28, 0.25) 100%);
|
||||
color: #fca5a5;
|
||||
border: 1px solid rgba(248, 113, 113, 0.4);
|
||||
}
|
||||
|
||||
/* Image Attachment Dropzone */
|
||||
.err-attach-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
.err-upload-box {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px dashed rgba(255, 255, 255, 0.18);
|
||||
border-radius: 14px;
|
||||
padding: 14px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.err-upload-box:hover {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border-color: var(--pri);
|
||||
}
|
||||
.err-upload-placeholder {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
color: var(--on-sv);
|
||||
font-size: 13px;
|
||||
}
|
||||
.err-upload-placeholder svg {
|
||||
stroke: var(--pri);
|
||||
}
|
||||
.err-upload-preview {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
text-align: left;
|
||||
}
|
||||
.err-upload-preview img {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
object-fit: cover;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
.err-upload-meta {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
.err-upload-meta span {
|
||||
font-size: 13px;
|
||||
color: var(--on-s);
|
||||
font-weight: 500;
|
||||
}
|
||||
.err-rm-img-btn {
|
||||
align-self: flex-start;
|
||||
color: #ef4444 !important;
|
||||
font-size: 11px !important;
|
||||
padding: 2px 8px !important;
|
||||
height: 24px !important;
|
||||
}
|
||||
|
||||
/* Draft Banner in Errors View */
|
||||
.draft-banner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 18px;
|
||||
border-radius: 16px;
|
||||
background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
|
||||
border: 1px solid rgba(245, 158, 11, 0.3);
|
||||
margin-bottom: 16px;
|
||||
font-size: 13px;
|
||||
color: #fde68a;
|
||||
}
|
||||
.draft-banner b {
|
||||
color: #fff;
|
||||
}
|
||||
.draft-btn {
|
||||
background: rgba(245, 158, 11, 0.16) !important;
|
||||
color: #fde68a !important;
|
||||
border: 1px solid rgba(245, 158, 11, 0.35) !important;
|
||||
}
|
||||
.draft-btn:hover {
|
||||
background: rgba(245, 158, 11, 0.28) !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.stt.draft {
|
||||
background: rgba(245, 158, 11, 0.2);
|
||||
color: #fbbf24;
|
||||
border: 1px solid rgba(245, 158, 11, 0.4);
|
||||
}
|
||||
.meta-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 6px;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
color: var(--on-sv);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
.meta-chip.ios {
|
||||
color: #38bdf8;
|
||||
border-color: rgba(56, 189, 248, 0.3);
|
||||
background: rgba(56, 189, 248, 0.1);
|
||||
}
|
||||
.meta-chip.android {
|
||||
color: #4ade80;
|
||||
border-color: rgba(74, 222, 128, 0.3);
|
||||
background: rgba(74, 222, 128, 0.1);
|
||||
}
|
||||
.meta-chip.crash {
|
||||
color: #f87171;
|
||||
border-color: rgba(248, 113, 113, 0.3);
|
||||
background: rgba(248, 113, 113, 0.1);
|
||||
}
|
||||
.meta-chip.bug {
|
||||
color: #facc15;
|
||||
border-color: rgba(250, 204, 21, 0.3);
|
||||
background: rgba(250, 204, 21, 0.1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user