Refine scheduled task dashboard UX
This commit is contained in:
@@ -2439,404 +2439,6 @@ progress::-moz-progress-bar {
|
||||
background: var(--panel);
|
||||
}
|
||||
|
||||
.task-board {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.task-create-form,
|
||||
.task-edit-form {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
|
||||
gap: 8px;
|
||||
align-items: end;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 22px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.task-edit-form {
|
||||
grid-template-columns:
|
||||
minmax(0, 1.4fr) minmax(110px, 0.6fr) minmax(0, 1fr)
|
||||
auto;
|
||||
margin-top: 8px;
|
||||
padding: 9px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.task-create-head {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.task-create-head strong {
|
||||
display: block;
|
||||
margin-top: 2px;
|
||||
font-size: 16px;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.task-create-form label,
|
||||
.task-edit-form label {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 4px;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.task-create-form input,
|
||||
.task-create-form select,
|
||||
.task-create-form textarea,
|
||||
.task-edit-form input,
|
||||
.task-edit-form select,
|
||||
.task-edit-form textarea {
|
||||
width: 100%;
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--panel-border-strong);
|
||||
border-radius: 13px;
|
||||
padding: 8px 10px;
|
||||
color: var(--ink);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.task-create-form textarea,
|
||||
.task-edit-form textarea {
|
||||
min-height: 38px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.task-create-form input:focus-visible,
|
||||
.task-create-form select:focus-visible,
|
||||
.task-create-form textarea:focus-visible,
|
||||
.task-edit-form input:focus-visible,
|
||||
.task-edit-form select:focus-visible,
|
||||
.task-edit-form textarea:focus-visible {
|
||||
outline: 3px solid rgba(191, 95, 44, 0.18);
|
||||
}
|
||||
|
||||
.task-create-form button,
|
||||
.task-edit-form button {
|
||||
min-height: 38px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 0 14px;
|
||||
color: var(--bg);
|
||||
background: var(--accent);
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.task-create-form button:disabled,
|
||||
.task-edit-form button:disabled {
|
||||
cursor: progress;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.task-form-wide {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.task-group {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 22px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
|
||||
.task-group-completed {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.task-group-completed[open] {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.task-group-completed summary {
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.task-group-completed summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.task-group-head {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.task-group-head strong {
|
||||
display: block;
|
||||
margin-top: 2px;
|
||||
font-size: 18px;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.task-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.task-card {
|
||||
display: grid;
|
||||
gap: 9px;
|
||||
min-width: 0;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 14px;
|
||||
background: var(--bg-card);
|
||||
}
|
||||
|
||||
.task-card-main,
|
||||
.task-time-grid,
|
||||
.task-suspended,
|
||||
.task-result {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.task-card-main {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.task-title {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.task-title strong {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
font-size: 15px;
|
||||
letter-spacing: -0.02em;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-status-line {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.task-provider {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 26px;
|
||||
padding: 0 9px;
|
||||
border-radius: 999px;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.task-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.task-action {
|
||||
min-height: 40px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid var(--panel-border-strong);
|
||||
border-radius: 999px;
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.task-action:hover,
|
||||
.task-action:focus-visible {
|
||||
border-color: rgba(191, 95, 44, 0.42);
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(191, 95, 44, 0.12);
|
||||
}
|
||||
|
||||
.task-action:disabled {
|
||||
cursor: progress;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.task-action.is-busy {
|
||||
display: inline-flex;
|
||||
gap: 7px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: progress;
|
||||
opacity: 0.85;
|
||||
background: rgba(191, 95, 44, 0.12);
|
||||
border-color: rgba(191, 95, 44, 0.32);
|
||||
}
|
||||
|
||||
.task-action.is-busy::before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border: 2px solid currentColor;
|
||||
border-right-color: transparent;
|
||||
border-radius: 50%;
|
||||
animation: ej-spin 0.7s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes ej-spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.task-action-cancel {
|
||||
color: #8f2f22;
|
||||
border-color: rgba(183, 71, 52, 0.22);
|
||||
background: rgba(183, 71, 52, 0.08);
|
||||
}
|
||||
|
||||
.task-time-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.task-time-grid > span,
|
||||
.task-suspended,
|
||||
.task-result {
|
||||
padding: 9px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 14px;
|
||||
background: rgba(255, 255, 255, 0.025);
|
||||
}
|
||||
|
||||
.task-time-grid small,
|
||||
.task-suspended span,
|
||||
.task-result span,
|
||||
.task-time-grid em,
|
||||
.task-suspended em {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.task-time-grid small,
|
||||
.task-time-grid strong,
|
||||
.task-time-grid em,
|
||||
.task-suspended span,
|
||||
.task-suspended strong,
|
||||
.task-suspended em,
|
||||
.task-result span,
|
||||
.task-result strong {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-time-grid strong,
|
||||
.task-suspended strong,
|
||||
.task-result strong {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.task-suspended {
|
||||
border-color: rgba(181, 138, 34, 0.22);
|
||||
background: rgba(181, 138, 34, 0.08);
|
||||
}
|
||||
|
||||
.task-result {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
border-color: rgba(63, 127, 81, 0.15);
|
||||
}
|
||||
|
||||
.result-fail {
|
||||
border-color: rgba(183, 71, 52, 0.28);
|
||||
background: rgba(183, 71, 52, 0.08);
|
||||
}
|
||||
|
||||
.result-none {
|
||||
border-color: rgba(109, 115, 95, 0.14);
|
||||
}
|
||||
|
||||
.task-prompt {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.task-edit summary,
|
||||
.task-prompt summary {
|
||||
min-height: 32px;
|
||||
color: var(--accent-strong);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.task-prompt p {
|
||||
margin: 4px 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.task-prompt small {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
font-family:
|
||||
'SF Mono', 'Cascadia Code', 'Roboto Mono', ui-monospace, monospace;
|
||||
font-size: 11px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-group-empty {
|
||||
padding: 12px;
|
||||
border-radius: 14px;
|
||||
color: var(--muted);
|
||||
background: rgba(255, 255, 255, 0.025);
|
||||
}
|
||||
|
||||
.pill-watchers {
|
||||
color: #173e23;
|
||||
background: rgba(63, 127, 81, 0.18);
|
||||
}
|
||||
|
||||
.pill-scheduled {
|
||||
color: #6e4a05;
|
||||
background: rgba(181, 138, 34, 0.16);
|
||||
}
|
||||
|
||||
.pill-paused {
|
||||
color: #6e4a05;
|
||||
background: rgba(181, 138, 34, 0.2);
|
||||
}
|
||||
|
||||
.pill-completed {
|
||||
color: #625d52;
|
||||
background: rgba(109, 115, 95, 0.16);
|
||||
}
|
||||
|
||||
.task-card > p {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.mono-chip {
|
||||
font-family:
|
||||
'SF Mono', 'Cascadia Code', 'Roboto Mono', ui-monospace, monospace;
|
||||
@@ -3165,55 +2767,6 @@ progress::-moz-progress-bar {
|
||||
.health-service > div:nth-of-type(3) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.task-group {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.task-create-form,
|
||||
.task-edit-form {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 7px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.task-form-wide {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.task-list {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.task-card {
|
||||
gap: 7px;
|
||||
padding: 9px;
|
||||
}
|
||||
|
||||
.task-action {
|
||||
min-height: 44px;
|
||||
padding-inline: 12px;
|
||||
}
|
||||
|
||||
.task-card-main {
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.task-time-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.task-time-grid > span,
|
||||
.task-suspended,
|
||||
.task-result {
|
||||
padding: 7px;
|
||||
}
|
||||
|
||||
.task-prompt summary {
|
||||
min-height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 380px) {
|
||||
@@ -3270,14 +2823,6 @@ progress::-moz-progress-bar {
|
||||
.health-restart-record {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.task-time-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.task-time-grid > span:last-child {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
|
||||
Reference in New Issue
Block a user