Edit status, department and assignee directly in ticket information, remove the redundant handling card and its layout rules, and cover editable and closed-ticket rendering. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
145 lines
12 KiB
CSS
145 lines
12 KiB
CSS
/* 工单运营页:列表保持紧凑,工作区在原生 dialog 内展开。复用 NativeUi 令牌。 */
|
|
.aksrt-tickets-admin__toolbar { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
|
|
.aksrt-tickets-admin__toolbar .subsubsub { margin: 0; padding: 0; box-shadow: none; }
|
|
.aksrt-tickets-admin__table { min-width: 1000px; table-layout: fixed; }
|
|
.aksrt-tickets-admin__table .column-title { width: 29%; }
|
|
.aksrt-tickets-admin__table .column-status { width: 11%; }
|
|
.aksrt-tickets-admin__table .column-type { width: 9%; }
|
|
.aksrt-tickets-admin__table .column-user { width: 13%; }
|
|
.aksrt-tickets-admin__table .column-admin { width: 10%; }
|
|
.aksrt-tickets-admin__table .column-time { width: 18%; }
|
|
.aksrt-tickets-admin__table .column-actions { width: 10%; }
|
|
.aksrt-tickets-admin__table .row-title { text-align: left; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
|
|
.aksrt-tickets-admin__sub { margin-top: 4px; color: var(--an-text-2); font-size: 12px; overflow-wrap: anywhere; }
|
|
.aksrt-native .aksrt-tickets-admin__row.is-awaiting td:first-child { box-shadow: inset 3px 0 0 var(--an-primary); }
|
|
.aksrt-ticket-hint { color: var(--an-text-2); font-size: 12px; font-weight: 400; }
|
|
.aksrt-ticket-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--aksrt-ticket-color); }
|
|
.aksrt-ticket-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; color: var(--an-text); background: var(--an-bg-soft); border: 1px solid var(--an-border); border-radius: 6px; font-size: 12px; line-height: 20px; white-space: nowrap; }
|
|
.aksrt-ticket-badge::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--aksrt-ticket-color, var(--an-muted)); }
|
|
.aksrt-ticket-urge { display: inline-block; padding: 1px 6px; color: var(--an-danger); background: #fdf0f2; border-radius: 4px; font-size: 12px; white-space: nowrap; }
|
|
.aksrt-ticket-user { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; color: var(--an-text); text-decoration: none; }
|
|
.aksrt-ticket-user img { flex: none; border-radius: 50%; }
|
|
.aksrt-ticket-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* 原生 top layer:固定头部/操作区,仅正文滚动。 */
|
|
html.aksrt-ticket-modal-open { overflow: hidden; scrollbar-gutter: stable; }
|
|
.aksrt-ticket-dialog {
|
|
box-sizing: border-box;
|
|
width: min(1180px, calc(100vw - 48px));
|
|
max-width: none;
|
|
max-height: calc(100dvh - 48px);
|
|
margin: auto;
|
|
padding: 0;
|
|
color: var(--an-text);
|
|
background: var(--an-card);
|
|
border: 1px solid var(--an-border);
|
|
border-radius: var(--an-radius);
|
|
box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
|
|
overflow: hidden;
|
|
font: inherit;
|
|
}
|
|
.aksrt-ticket-dialog:not([open]) { display: none; }
|
|
.aksrt-ticket-dialog--create { width: min(720px, calc(100vw - 48px)); }
|
|
.aksrt-ticket-dialog::backdrop { background: rgba(25, 32, 39, .48); }
|
|
.aksrt-ticket-dialog__frame { display: flex; flex-direction: column; max-height: calc(100dvh - 50px); margin: 0; }
|
|
.aksrt-ticket-dialog__head { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--an-border); }
|
|
.aksrt-ticket-dialog__head > div { min-width: 0; }
|
|
.aksrt-ticket-dialog__head h2 { margin: 0; color: var(--an-text); font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
.aksrt-ticket-dialog__head p { margin: 6px 0 0; color: var(--an-text-2); font-size: 12px; overflow-wrap: anywhere; }
|
|
.aksrt-ticket-dialog__close { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; color: var(--an-text-2); background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
|
|
.aksrt-ticket-dialog__close:hover { color: var(--an-text); background: var(--an-bg-soft); border-color: var(--an-border); }
|
|
.aksrt-ticket-dialog__body { min-height: 0; padding: 20px 24px; overflow-y: auto; overscroll-behavior: contain; }
|
|
.aksrt-ticket-dialog--detail .aksrt-ticket-dialog__body { min-height: 120px; background: var(--an-bg-soft); }
|
|
.aksrt-ticket-dialog__foot { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--an-border); }
|
|
.aksrt-ticket-dialog__foot > .aksrt-ticket-hint { margin-right: auto; }
|
|
.aksrt-ticket-dialog [hidden] { display: none !important; }
|
|
.aksrt-ticket-dialog textarea { box-sizing: border-box; width: 100%; min-height: 70px; resize: vertical; line-height: 1.65; }
|
|
.aksrt-ticket-dialog :is(input, select, textarea, button, a):focus-visible,
|
|
.aksrt-ticket-conversation__scroll:focus-visible { outline: 2px solid var(--an-primary); outline-offset: 2px; box-shadow: none; }
|
|
.aksrt-ticket-dialog button:disabled { cursor: default; opacity: .6; }
|
|
.aksrt-ticket-feedback { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; color: #176b3d; background: var(--an-primary-soft); border-bottom: 1px solid var(--an-border); }
|
|
.aksrt-ticket-feedback p { margin: 0; }
|
|
.aksrt-ticket-feedback.is-error { color: #a61b36; background: #fdf0f2; }
|
|
.aksrt-ticket-feedback .button { flex: none; }
|
|
|
|
/* 处理工作区:会话与用户回复在左,内部处理与备注在右。 */
|
|
.aksrt-ticket-detail { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
|
|
.aksrt-ticket-detail__main,
|
|
.aksrt-ticket-detail__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
|
|
.aksrt-ticket-conversation,
|
|
.aksrt-ticket-detail__reply-form,
|
|
.aksrt-ticket-detail__card { background: var(--an-card); border: 1px solid var(--an-border); border-radius: var(--an-radius-sm); }
|
|
.aksrt-ticket-detail__reply-form,
|
|
.aksrt-ticket-detail__card { padding: 16px; }
|
|
.aksrt-ticket-detail__heading { display: block; margin: 0 0 10px; color: var(--an-text); font-size: 14px; font-weight: 600; }
|
|
.aksrt-ticket-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
|
|
.aksrt-ticket-section-head h3 { margin: 0; color: var(--an-text); font-size: 14px; }
|
|
.aksrt-ticket-section-head .button-link { font-size: 12px; }
|
|
.aksrt-ticket-conversation > .aksrt-ticket-section-head { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--an-border-soft); }
|
|
.aksrt-ticket-conversation__scroll { max-height: 48vh; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
|
|
.aksrt-ticket-detail__origin { padding: 0 0 18px; }
|
|
.aksrt-ticket-detail__msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; font-size: 12px; }
|
|
.aksrt-ticket-detail__msg-head img { flex: none; border-radius: 50%; }
|
|
.aksrt-ticket-detail__msg-head strong { color: var(--an-text); overflow-wrap: anywhere; }
|
|
.aksrt-ticket-detail__msg-head time { margin-left: auto; color: var(--an-text-2); }
|
|
.aksrt-ticket-detail__body { max-width: 76ch; overflow-wrap: anywhere; line-height: 1.75; }
|
|
.aksrt-ticket-detail__body > p:first-child { margin-top: 0; }
|
|
.aksrt-ticket-detail__body > p:last-child { margin-bottom: 0; }
|
|
.aksrt-ticket-detail__empty { margin: 10px 0 0; color: var(--an-text-2); }
|
|
.aksrt-ticket-detail__replies { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
|
|
.aksrt-ticket-detail__reply { margin: 0; padding: 14px; border: 1px solid var(--an-border); border-radius: var(--an-radius-sm); }
|
|
.aksrt-ticket-detail__reply.is-admin { margin-left: 24px; background: var(--an-primary-soft); border-color: #c4e7d3; }
|
|
.aksrt-ticket-detail__reply.is-user { margin-right: 24px; }
|
|
.aksrt-ticket-detail__system { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 0; color: var(--an-text-2); font-size: 12px; }
|
|
.aksrt-ticket-detail__quote { margin: 0 0 10px; padding: 8px 12px; color: var(--an-text-2); background: var(--an-bg-soft); border-left: 3px solid var(--an-border); white-space: pre-line; overflow-wrap: anywhere; }
|
|
.aksrt-ticket-detail__attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
|
|
.aksrt-ticket-detail__attachments li { margin: 0; }
|
|
.aksrt-ticket-detail__attachments img { display: block; width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--an-border); border-radius: 6px; }
|
|
.aksrt-ticket-counter { display: block; margin-top: 5px; color: var(--an-text-2); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
|
|
.aksrt-ticket-counter.is-over { color: var(--an-danger); }
|
|
.aksrt-ticket-detail__reply-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
|
|
.aksrt-ticket-detail__reply-foot select { max-width: min(260px, 100%); }
|
|
.aksrt-ticket-detail__reply-foot .button-primary { margin-left: auto; }
|
|
.aksrt-ticket-detail__closed { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 16px; color: var(--an-text-2); background: var(--an-card); border: 1px dashed var(--an-border); border-radius: var(--an-radius-sm); }
|
|
.aksrt-ticket-detail__closed .dashicons { flex: none; }
|
|
.aksrt-ticket-detail__info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; margin: 0; font-size: 12px; }
|
|
.aksrt-ticket-detail__info dt { color: var(--an-text-2); }
|
|
.aksrt-ticket-detail__info dd { margin: 0; overflow-wrap: anywhere; }
|
|
.aksrt-ticket-detail__status-form { display: flex; flex-direction: column; gap: 12px; }
|
|
.aksrt-ticket-detail__status-form .aksrt-ticket-detail__info dt { align-self: center; }
|
|
.aksrt-ticket-detail__status-form select { width: 100%; max-width: none; }
|
|
.aksrt-ticket-close-warning { padding: 10px; color: #9d2038; background: #fdf0f2; border-radius: 6px; font-size: 12px; }
|
|
.aksrt-ticket-close-warning label { display: flex; align-items: flex-start; gap: 6px; line-height: 1.6; }
|
|
.aksrt-ticket-close-warning input { flex: none; margin: 3px 0 0; }
|
|
.aksrt-ticket-detail__private { border-top: 3px solid var(--an-warning); }
|
|
.aksrt-ticket-detail__private > .aksrt-ticket-hint { margin: -3px 0 12px; }
|
|
.aksrt-ticket-detail__notes { display: flex; flex-direction: column; gap: 12px; max-height: 240px; margin: 0 0 14px; padding: 0; overflow-y: auto; list-style: none; }
|
|
.aksrt-ticket-detail__notes li { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--an-border-soft); overflow-wrap: anywhere; }
|
|
.aksrt-ticket-detail__note-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-bottom: 6px; font-size: 12px; }
|
|
.aksrt-ticket-detail__note-head time { color: var(--an-text-2); }
|
|
.aksrt-ticket-detail__note-form .button { margin-top: 8px; }
|
|
|
|
@media (max-width: 960px) {
|
|
.aksrt-ticket-detail { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
@media (max-width: 600px) {
|
|
.aksrt-ticket-dialog,
|
|
.aksrt-ticket-dialog--create { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
|
|
.aksrt-ticket-dialog__frame { max-height: calc(100dvh - 18px); }
|
|
.aksrt-ticket-dialog__head,
|
|
.aksrt-ticket-dialog__body,
|
|
.aksrt-ticket-dialog__foot,
|
|
.aksrt-ticket-feedback { padding: 14px; }
|
|
.aksrt-ticket-dialog__head h2 { font-size: 17px; }
|
|
.aksrt-ticket-dialog__foot > .aksrt-ticket-hint { flex-basis: 100%; }
|
|
.aksrt-ticket-detail__reply.is-admin,
|
|
.aksrt-ticket-detail__reply.is-user { margin-left: 0; margin-right: 0; }
|
|
.aksrt-ticket-detail__msg-head time { flex-basis: 100%; margin-left: 0; }
|
|
.aksrt-ticket-conversation__scroll { max-height: 44vh; padding: 12px; }
|
|
.aksrt-ticket-detail__reply-foot select { max-width: 100%; width: 100%; }
|
|
.aksrt-ticket-feedback { align-items: flex-start; flex-direction: column; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.aksrt-tickets-admin *, .aksrt-tickets-admin *::before { scroll-behavior: auto !important; transition: none !important; }
|
|
}
|