Polish email and cookbook flows

This commit is contained in:
pewdiepie-archdaemon
2026-06-02 22:38:55 +09:00
parent 15a2662119
commit ff93a6c63b
22 changed files with 1492 additions and 218 deletions
+324 -14
View File
@@ -832,7 +832,7 @@ body.bg-pattern-sparkles {
display: flex; gap: 6px; flex-wrap: wrap;
max-width: calc(100vw - 24px);
padding: 4px;
z-index: 999;
z-index: 10020;
pointer-events: none;
}
.minimized-dock-chip {
@@ -907,7 +907,7 @@ body.bg-pattern-sparkles {
color-mix(in srgb, #f0abfc 22%, var(--panel, var(--bg))));
border-color: color-mix(in srgb, var(--accent, var(--red)) 72%, #fff 12%) !important;
animation: chip-long-press-pulse 0.82s ease-in-out infinite;
z-index: 10;
z-index: 10030;
}
.minimized-dock-chip.chip-long-press::before {
content: '';
@@ -10107,6 +10107,24 @@ textarea.memory-add-input {
#memory-modal .memory-bulk-bar {
padding-right: 18px;
}
#email-lib-bulk-delete.email-bulk-loading {
display: inline-flex;
align-items: center;
gap: 5px;
opacity: 0.9;
cursor: wait;
}
#email-lib-bulk-delete.email-bulk-loading .email-bulk-whirlpool {
width: 12px;
height: 12px;
margin: 0;
position: relative;
top: -1px;
}
#email-lib-bulk-delete.email-bulk-loading .email-bulk-loading-label {
position: relative;
top: 0;
}
/* Drafts bulk bar defaults to justify-content:flex-end (whole row hugs the
right). Reset it so All + count sit on the left and only the action button
is pushed right matching every other bulk bar. */
@@ -14503,10 +14521,10 @@ body:has(.doc-version-panel:not(.hidden)) .hamburger-btn {
overflow: hidden !important;
z-index: 155 !important;
}
body.email-doc-split-active #email-lib-modal.email-snap-left .modal-content,
body.email-doc-split-active #email-lib-modal.modal-left-docked .modal-content,
body.email-doc-split-active .modal[id^="email-reader-"].email-snap-left .modal-content,
body.email-doc-split-active .modal[id^="email-reader-"].modal-left-docked .modal-content {
body.email-doc-split-active #email-lib-modal.email-snap-left:not(.modal-dragging) .modal-content,
body.email-doc-split-active #email-lib-modal.modal-left-docked:not(.modal-dragging) .modal-content,
body.email-doc-split-active .modal[id^="email-reader-"].email-snap-left:not(.modal-dragging) .modal-content,
body.email-doc-split-active .modal[id^="email-reader-"].modal-left-docked:not(.modal-dragging) .modal-content {
position: absolute !important;
left: 0 !important;
top: 0 !important;
@@ -14821,6 +14839,11 @@ body.left-dock-active {
#email-lib-modal .modal-content {
transition: width 0.22s ease-out, height 0.22s ease-out;
}
@media (min-width: 769px) {
body:not(.email-doc-split-active) #email-lib-modal:not(.email-lib-fullscreen):not(.modal-left-docked):not(.modal-right-docked) .modal-content {
min-height: min(560px, 85vh);
}
}
/* Cookbook's cached-model list should scale with viewport height, not be capped at 400px */
.hwfit-cached-list {
@@ -17583,6 +17606,30 @@ body.gallery-selecting .gallery-dl-btn,
min-height: 0;
scrollbar-width: thin;
}
#cookbook-modal .modal-content {
display: flex;
flex-direction: column;
overflow: hidden;
}
#cookbook-modal .modal-header {
flex: 0 0 auto;
}
#cookbook-modal .cookbook-body {
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
}
#cookbook-modal .cookbook-group {
min-height: 0;
}
#cookbook-modal .cookbook-group > .admin-card {
min-height: 0;
overflow-y: auto !important;
overflow-x: hidden !important;
}
#cookbook-modal .cookbook-section-body {
min-height: 0;
}
.cookbook-body::-webkit-scrollbar {
width: 4px;
}
@@ -19096,6 +19143,44 @@ body.gallery-selecting .gallery-dl-btn,
.cookbook-task-clear-label { display: none; }
.cookbook-task-check-ico { display: none; }
.cookbook-task-clear-ico { display: inline; }
.cookbook-task[data-status="done"] .cookbook-task-check {
color: var(--green, #50fa7b);
}
.cookbook-task[data-status="done"] .cookbook-task-check:hover {
background: color-mix(in srgb, var(--green, #50fa7b) 16%, transparent);
}
.cookbook-task[data-status="done"] .cookbook-task-done-label {
color: var(--green, #50fa7b);
}
.cookbook-task[data-status="done"] .cookbook-task-check-ico { display: inline; }
.cookbook-task[data-status="done"] .cookbook-task-clear-ico { display: none; }
.cookbook-task-start-now {
display: inline-flex;
align-items: center;
gap: 3px;
position: relative;
top: -4px;
cursor: pointer;
padding: 1px 6px 1px 4px;
border: 0;
border-radius: 9px;
background: transparent;
color: var(--fg);
font-family: inherit;
font-size: 9px;
line-height: 1;
text-transform: lowercase;
white-space: nowrap;
transition: background 0.15s;
}
.cookbook-task-start-now svg {
flex-shrink: 0;
position: relative;
top: 0;
}
.cookbook-task-start-now:hover {
background: color-mix(in srgb, var(--fg) 12%, transparent);
}
/* "Serve" button on a finished download green pill matching the "running" /
finished badge (it sits next to the green FINISHED chip + check). */
.cookbook-task-serve-btn {
@@ -20252,6 +20337,68 @@ body.gallery-selecting .gallery-dl-btn,
.hwfit-toolbar .hwfit-usecase { min-width: 70px; flex-shrink: 0; }
.hwfit-toolbar .hwfit-quant { min-width: 50px; flex-shrink: 0; }
.hwfit-toolbar .hwfit-search { flex: 1; min-width: 80px; }
.hwfit-help-chip {
width: 14px;
height: 14px;
flex: 0 0 14px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
color: color-mix(in srgb, var(--fg) 55%, transparent);
font-size: 9px;
font-weight: 700;
line-height: 1;
cursor: help;
position: relative;
top: -1px;
margin-left: -1px;
}
.hwfit-help-chip:hover {
color: var(--fg);
border-color: color-mix(in srgb, var(--fg) 45%, transparent);
background: color-mix(in srgb, var(--fg) 8%, transparent);
}
.hwfit-help-chip-inline {
margin-left: -2px;
margin-right: 0;
}
.hwfit-ctx-control {
height: 28px;
min-width: 134px;
flex-shrink: 0;
display: inline-flex;
align-items: center;
gap: 5px;
padding: 0 7px;
border: 1px solid var(--border);
border-radius: 4px;
color: var(--fg-muted);
background: var(--bg);
font-size: 10px;
box-sizing: border-box;
}
.hwfit-ctx-control span {
text-transform: uppercase;
letter-spacing: 0.3px;
opacity: 0.75;
}
.hwfit-ctx-control input[type="range"] {
width: 54px;
min-width: 54px;
height: 16px;
padding: 0;
border: 0;
background: transparent;
accent-color: var(--accent, var(--red));
}
.hwfit-ctx-control output {
min-width: 28px;
text-align: right;
color: var(--fg);
font-weight: 600;
}
.hwfit-server-toggle { flex-shrink: 0; font-size: 10px !important; padding: 3px 8px !important; white-space: nowrap; }
.hwfit-toolbar .hwfit-host { width: 110px; flex-shrink: 0; }
.hwfit-env-row { gap: 6px; flex-wrap: wrap; }
@@ -20447,7 +20594,7 @@ body.gallery-selecting .gallery-dl-btn,
.hwfit-c-ctx { width: 32px; }
.hwfit-c-speed { width: 44px; }
.hwfit-c-score { width: 40px; font-weight: 700; font-size: 11px; color: var(--fg); }
.hwfit-c-mode { width: 48px; }
.hwfit-c-mode { width: 72px; }
.hwfit-moe {
display: inline-block; padding: 0 4px; border-radius: 4px; margin-left: 4px;
background: color-mix(in srgb, var(--red) 15%, transparent);
@@ -20521,6 +20668,15 @@ body.gallery-selecting .gallery-dl-btn,
.hwfit-panel-actions {
display: flex; gap: 4px; flex-wrap: wrap;
}
.hwfit-panel-note {
font-size: 10px;
line-height: 1.35;
color: var(--fg-muted);
background: color-mix(in srgb, var(--yellow, #f1fa8c) 8%, transparent);
border: 1px solid color-mix(in srgb, var(--yellow, #f1fa8c) 18%, var(--border));
border-radius: 4px;
padding: 5px 7px;
}
/* ── Saved presets ── */
.hwfit-preset {
@@ -21076,6 +21232,36 @@ body:not(.welcome-ready) #welcome-screen {
opacity: 0.6;
font-variant-numeric: tabular-nums;
}
.task-log-force-run {
border: 0;
background: color-mix(in srgb, var(--fg) 7%, transparent);
box-shadow: none;
color: inherit;
opacity: .82;
margin-left: 7px;
padding: 1px 6px 1px 4px;
min-height: 16px;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 3px;
font-family: inherit;
font-size: 10px;
line-height: 1;
cursor: pointer;
position: relative;
top: -1px;
}
.task-log-force-run svg {
display: block;
flex-shrink: 0;
}
.task-log-force-run:hover {
opacity: 1;
background: color-mix(in srgb, var(--green, #50fa7b) 16%, transparent);
color: var(--green, #50fa7b);
}
.task-log-stop {
border: 0;
background: transparent;
@@ -26584,17 +26770,17 @@ button .spinner-whirlpool {
transition: opacity 0.15s, color 0.15s;
opacity: 0.15; color: var(--fg);
}
/* Hover preview: bright accent when un-checked so the user sees a check
coming; dim+grey when already active so they can distinguish the
"click to UN-check" target from the active state itself. */
/* Hover preview: bright accent when unchecked so the user sees a check coming.
Once active, keep the exact same color on hover so the done state does not
visually flip while the pointer is still over it. */
.email-card-done:not(.active):hover {
opacity: 0.75 !important;
color: var(--accent-primary, var(--red));
}
.email-card-done.active { opacity: 0.95; color: var(--accent-primary, var(--red)); }
.email-card-done.active:hover {
opacity: 0.35 !important;
color: var(--fg) !important;
opacity: 0.95 !important;
color: var(--accent-primary, var(--red)) !important;
}
.email-card-done.just-checked {
animation: check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
@@ -26742,6 +26928,7 @@ button .spinner-whirlpool {
}
.recipient-chip {
display: inline-flex; align-items: center;
gap: 5px;
padding: 1px 8px; font-size: 10px;
background: color-mix(in srgb, var(--fg) 6%, transparent);
border: 1px solid var(--border);
@@ -26754,6 +26941,35 @@ button .spinner-whirlpool {
overflow: hidden;
text-overflow: ellipsis;
}
.recipient-chip-label {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.recipient-chip-copy {
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
top: -2px;
width: 14px;
height: 14px;
padding: 0;
border: none;
background: none;
color: inherit;
opacity: 0.55;
cursor: pointer;
flex: 0 0 auto;
}
.recipient-chip-copy:hover,
.recipient-chip-copy.copied {
opacity: 1;
color: var(--accent-primary, var(--red));
}
.recipient-chip-copy[hidden] {
display: none !important;
}
.recipient-chip:hover {
background: color-mix(in srgb, var(--accent-primary, var(--red)) 12%, transparent);
border-color: color-mix(in srgb, var(--accent-primary, var(--red)) 40%, transparent);
@@ -28239,6 +28455,55 @@ body.doc-find-active mark.doc-find-mark.current {
display: flex; flex-direction: column; gap: 6px; padding: 10px 12px;
border-bottom: 1px solid var(--border); background: var(--bg); flex-shrink: 0;
}
.doc-email-fields {
display: flex;
flex-direction: column;
gap: 6px;
min-height: 0;
}
.doc-email-collapse-btn {
width: 100%;
min-height: 24px;
display: none;
align-items: center;
gap: 7px;
padding: 2px 4px 3px;
border: none;
background: transparent;
color: var(--fg);
font: inherit;
font-size: 11px;
cursor: pointer;
opacity: 0.72;
text-align: left;
}
.doc-email-collapse-btn:hover { opacity: 1; color: var(--accent, var(--red)); }
.doc-email-collapse-btn svg {
flex-shrink: 0;
opacity: 0.65;
transition: transform 0.14s ease;
}
.doc-email-collapse-summary {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0.74;
}
.doc-email-header:not(.doc-email-header-collapsed) .doc-email-collapse-summary {
opacity: 0.45;
}
.doc-email-header.doc-email-header-collapsed {
gap: 0;
padding-top: 5px;
padding-bottom: 5px;
}
.doc-email-header.doc-email-header-collapsed .doc-email-fields {
display: none;
}
.doc-email-header.doc-email-header-collapsed .doc-email-collapse-btn svg {
transform: rotate(180deg);
}
.email-field { display: flex; align-items: center; gap: 8px; position: relative; }
.email-field label { font-size: 11px; font-weight: 600; color: var(--fg); opacity: 0.5; min-width: 50px; text-align: right; flex-shrink: 0; }
.email-field input {
@@ -28267,6 +28532,11 @@ body.doc-find-active mark.doc-find-mark.current {
position: absolute; right: 6px; top: calc(50% + 4px); transform: translateY(-50%);
z-index: 2;
}
@media (min-width: 769px) {
.email-field .email-cc-toggle {
top: calc(50% + 4px);
}
}
.email-field input { padding-right: 60px; }
.email-field #doc-email-cc, .email-field #doc-email-bcc, .email-field #doc-email-subject { padding-right: 8px; }
@@ -28441,17 +28711,39 @@ body.doc-find-active mark.doc-find-mark.current {
gap: 0;
}
@media (max-width: 768px) {
.doc-email-collapse-btn {
background: inherit;
}
/* Mobile: keep the pill but ensure a comfortable touch target. */
.email-attachment-open {
height: 26px; padding: 0 10px;
min-height: 26px !important;
}
.email-attachments,
.email-compose-atts {
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding-left: 0;
padding-bottom: 2px;
}
.email-attachments::-webkit-scrollbar,
.email-compose-atts::-webkit-scrollbar {
display: none;
}
/* Attachment chip body modest minimum height so the open icon sits
neatly without dominating. */
.email-attachment-chip {
.email-attachment-chip,
.email-compose-chip {
flex: 0 0 auto;
padding: 6px 8px !important;
min-height: 36px !important;
}
.email-compose-chip .compose-chip-name {
max-width: 190px;
}
}
/* Compose attachment chips (when sending new email) */
@@ -28478,7 +28770,25 @@ body.doc-find-active mark.doc-find-mark.current {
opacity: 0.4; font-size: 11px; cursor: pointer;
padding: 4px 8px; font-family: inherit;
}
.email-cc-toggle:hover { opacity: 1; color: var(--accent, #4a9eff); }
.email-cc-toggle:hover {
opacity: 1;
color: var(--accent, #4a9eff);
background: none !important;
}
@media (max-width: 768px) {
.doc-email-collapse-btn {
display: flex;
}
}
@media (min-width: 769px) {
#doc-email-header #doc-email-collapse-btn.doc-email-collapse-btn {
display: none !important;
}
#doc-email-header.doc-email-header-collapsed .doc-email-fields {
display: flex !important;
}
}
.email-autocomplete {
position: absolute; top: 100%; left: 58px; right: 0; z-index: 1000;