improve: Immich cloud filter and optimize

This commit is contained in:
2026-10-11 20:18:04 +07:00
parent f37a093a23
commit 0665796e37
15 changed files with 4699 additions and 87 deletions
+223 -6
View File
@@ -272,8 +272,44 @@
beside it — the account's recipe list is the one place a file can be thrown
away from the studio. */
.saved-list { display: flex; flex-direction: column; gap: 6px; }
.saved-row { display: flex; gap: 6px; align-items: stretch; }
.saved-row .chip:first-child { flex: 1; justify-content: space-between; text-align: left; }
.saved-row { display: flex; gap: 6px; align-items: center; justify-content: space-between; width: 100%; }
.saved-row .link-chip {
flex: 1;
border: none;
background: none;
border-radius: 0;
padding: 3px 0;
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
text-align: left;
font-size: 12px;
color: var(--text);
}
.saved-row .link-chip:hover .chip-label { text-decoration: underline; }
.saved-row .link-chip.on .chip-label,
.saved-row .link-chip[aria-pressed="true"] .chip-label { color: var(--accent); }
.saved-row .link-chip .chip-glyph {
flex: 0 0 auto;
font-size: 10px;
line-height: 1;
color: var(--text-dim);
}
.saved-del-btn {
border: none;
background: none;
color: var(--text-dim);
cursor: pointer;
font-size: 11px;
line-height: 1;
padding: 3px 6px;
display: inline-flex;
align-items: center;
justify-content: center;
opacity: 0.7;
}
.saved-del-btn:hover { color: var(--text); opacity: 1; }
.chip[aria-pressed="true"], .chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
/* A chip painted with the value it picks (a WB preset's cast, the same swatch
the ruler paints). The fill and the ink are inline — they ARE the value, not
@@ -1826,8 +1862,18 @@ input[type="range"].track-temp::-webkit-slider-thumb, input[type="range"].track-
.rail button .glyph { display: none; }
.rail button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); }
.col,
.col-main,
.col-sub,
.col[data-col="slider"],
.rail {
width: 100% !important;
max-width: 100vw !important;
min-width: 100% !important;
box-sizing: border-box !important;
}
.col-grip { display: none !important; }
.col {
width: auto;
padding: 8px;
gap: 6px;
overflow: visible;
@@ -1836,7 +1882,7 @@ input[type="range"].track-temp::-webkit-slider-thumb, input[type="range"].track-
/* One chip per line is the desktop column's shape; a phone wants the row. */
.col .chip-row { flex-direction: row; align-items: center; }
.col .chip { text-align: center; }
.col-slider, .col-create { width: auto; }
.col-slider, .col-create { width: 100% !important; }
/* --- the tab's own chips: the bottom bar -------------------------------- */
/* A strip reads across, never down: what does not fit scrolls sideways, so
@@ -1858,7 +1904,12 @@ input[type="range"].track-temp::-webkit-slider-thumb, input[type="range"].track-
allowed to shrink would squeeze under its own contents and the chips would
paint over the ones beside them. */
.col-main > *, .col-sub:not(.wm-extra) > * { flex: 0 0 auto; }
.col-main:not(.col-create) .chip-row { flex-wrap: nowrap; }
.col-main:not(.col-create) .chip-row,
.col-sub:not(.wm-extra) .chip-row {
flex-wrap: nowrap !important;
min-width: 100% !important;
width: max-content !important;
}
.col-main .chip { flex: 0 0 auto; }
/* The rule a strip is read across runs the other way here: in a row of chips
it divides the line, it does not break it. */
@@ -1949,7 +2000,9 @@ input[type="range"].track-temp::-webkit-slider-thumb, input[type="range"].track-
.col-sub[data-col="wm"] { border-top: 1px solid var(--border-soft); overflow-y: auto; }
.workspace:has(.chips > .col-sub[data-col="options"]) .col-main,
.workspace:has(.chips > .col-sub[data-col="wm"]) .col-main,
.workspace:has(.chips > .col-sub[data-col="recipes"]) .col-main { display: none; }
.workspace:has(.chips > .col-sub[data-col="recipes"]) .col-main,
.workspace:has(.chips > .col-sub[data-col="history"]) .col-main,
.workspace:has(.chips > .col-sub[data-col="mask"]) .col-main { display: none; }
/* One strip at a time holds here too: the ruler a knob opens is the last
strip of the walk, so it takes the place of the strip that opened it. The
@@ -2250,3 +2303,167 @@ input[type="range"].track-temp::-webkit-slider-thumb, input[type="range"].track-
color: #fff;
font-size: 12px;
}
/* --- Mobile Studio & Force Mobile View Overrides ------------------------- */
@media (max-width: 860px) {
.save-hint { display: none !important; }
.btn-save-action { flex: 0 0 auto !important; white-space: nowrap !important; }
.col-main:has(.saved-list) {
flex-direction: row !important;
align-items: center !important;
gap: 10px !important;
width: 100% !important;
max-width: 100vw !important;
overflow-x: auto !important;
overflow-y: hidden !important;
flex-wrap: nowrap !important;
}
.saved-list {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
gap: 12px !important;
overflow-x: auto !important;
overflow-y: hidden !important;
flex-wrap: nowrap !important;
flex: 0 0 auto !important;
}
.saved-row {
display: inline-flex !important;
align-items: center !important;
gap: 4px !important;
flex: 0 0 auto !important;
white-space: nowrap !important;
width: auto !important;
}
.saved-row .link-chip {
padding: 6px 4px !important;
white-space: nowrap !important;
}
}
.workspace.is-mobile {
flex-direction: column !important;
}
.workspace.is-mobile:not(.strip-open) .chips {
display: none !important;
}
.workspace.is-mobile.strip-open .rail {
display: none !important;
}
.workspace.is-mobile .stage-slot {
order: 0 !important;
min-height: 0 !important;
}
.workspace.is-mobile .col[data-col="slider"] {
order: 1 !important;
}
.workspace.is-mobile .col-sub {
order: 2 !important;
}
.workspace.is-mobile .col-main {
order: 3 !important;
}
.workspace.is-mobile .rail {
order: 4 !important;
width: 100% !important;
max-width: 100vw !important;
flex-direction: row !important;
overflow-x: auto !important;
overflow-y: hidden !important;
}
.workspace.is-mobile .chips {
display: contents !important;
}
.workspace.is-mobile .col,
.workspace.is-mobile .col-main,
.workspace.is-mobile .col-sub,
.workspace.is-mobile .col[data-col="slider"],
.workspace.is-mobile .col-create,
.workspace.is-mobile .col-slider {
width: 100% !important;
max-width: 100vw !important;
min-width: 100% !important;
box-sizing: border-box !important;
border-right: none !important;
}
.workspace.is-mobile .col-main {
flex-direction: row !important;
align-items: center !important;
gap: 6px !important;
max-height: 46vh !important;
overflow-x: auto !important;
overflow-y: hidden !important;
background: var(--bg) !important;
border-top: 1px solid var(--border-soft) !important;
padding: 6px 8px !important;
}
.workspace.is-mobile .col-main > *,
.workspace.is-mobile .col-sub:not(.wm-extra) > * {
flex: 0 0 auto !important;
}
.workspace.is-mobile .col-main:not(.col-create) .chip-row,
.workspace.is-mobile .col-sub:not(.wm-extra) .chip-row {
min-width: 100% !important;
width: max-content !important;
flex-wrap: nowrap !important;
flex-direction: row !important;
align-items: center !important;
}
.workspace.is-mobile .col-grip {
display: none !important;
}
.workspace.is-mobile .save-hint {
display: none !important;
}
.workspace.is-mobile .btn-save-action {
flex: 0 0 auto !important;
white-space: nowrap !important;
}
.workspace.is-mobile .col-main:has(.saved-list) {
flex-direction: row !important;
align-items: center !important;
gap: 10px !important;
width: 100% !important;
max-width: 100vw !important;
overflow-x: auto !important;
overflow-y: hidden !important;
flex-wrap: nowrap !important;
}
.workspace.is-mobile .saved-list {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
gap: 12px !important;
overflow-x: auto !important;
overflow-y: hidden !important;
flex-wrap: nowrap !important;
flex: 0 0 auto !important;
}
.workspace.is-mobile .saved-row {
display: inline-flex !important;
align-items: center !important;
gap: 4px !important;
flex: 0 0 auto !important;
white-space: nowrap !important;
width: auto !important;
}
.workspace.is-mobile .saved-row .link-chip {
padding: 6px 4px !important;
white-space: nowrap !important;
}
.workspace.is-mobile .col-sub[data-col="options"],
.workspace.is-mobile .col-sub[data-col="wm"],
.workspace.is-mobile .col-sub[data-col="recipes"] {
order: 3 !important;
background: var(--bg) !important;
max-height: 46vh !important;
}
.workspace.is-mobile:has(.chips > .col-sub[data-col="options"]) .col-main,
.workspace.is-mobile:has(.chips > .col-sub[data-col="wm"]) .col-main,
.workspace.is-mobile:has(.chips > .col-sub[data-col="recipes"]) .col-main,
.workspace.is-mobile:has(.chips > .col-sub[data-col="history"]) .col-main,
.workspace.is-mobile:has(.chips > .col-sub[data-col="mask"]) .col-main {
display: none !important;
}
File diff suppressed because it is too large Load Diff