Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

Photos: the upload panel as icloud.com shows it

Yashwanth Kamireddi186d459a19df
diff --git a/.uiverify/photos.mjs b/.uiverify/photos.mjs
index db9d573..ef17a9e 100644
--- a/.uiverify/photos.mjs
+++ b/.uiverify/photos.mjs
@@ -239,26 +239,44 @@ await page.waitForTimeout(100);
ok((await page.getByRole("button", { name: "Zoom In" }).isEnabled()), "Ctrl − zooms back out, as in Photos");
ok(/Photos?, 1 Video/.test(await page.locator(".px-tally").innerText()), `the foot of the library says what it holds ${await page.locator(".px-tally").innerText()}`);
-// Adding: the chosen photos go to the library, each shown in the tray as it goes; a file
-// Photos can't take says why at once; Cancel stops the rest; a clean finish clears itself.
+// Adding, as icloud.com shows it: a panel at the right — "Uploading 3 Items to iCloud", each
+// file with how much has gone, Pending with a way to stop it; a file Photos can't take says why
+// at once; Stop Upload stops the rest; at the end what did not go, and why, until Done.
+const say = (e) => page.evaluate((x) => window.__emit("quince://photo-upload", { batch: "B1", within: "", folder: false, error: null, sent: 0, total: 1000, ...x }), e);
await page.evaluate(() => { window.__pick = ["/home/test/Pictures/beach.jpg", "/home/test/Pictures/notes.txt", "/home/test/Pictures/dog.heic"]; });
await page.getByRole("button", { name: "Add Photos" }).click();
-await page.waitForTimeout(300);
+await page.waitForTimeout(400);
ok(JSON.stringify(await page.evaluate(() => window.__photoUploads?.at(-1))) === JSON.stringify(["/home/test/Pictures/beach.jpg", "/home/test/Pictures/notes.txt", "/home/test/Pictures/dog.heic"]),
"Add Photos sends the chosen files to the library");
-ok((await page.locator(".upload-tray").count()) === 1 && /can’t add this kind/.test(await page.locator(".upload-tray").innerText()),
- "the tray shows the files, and why one can't be added");
-await page.evaluate(() => window.__emit("quince://photo-upload", { id: "B1:0", batch: "B1", name: "beach.jpg", within: "", folder: false, error: null, state: "sending", sent: 500, total: 1000 }));
+const panel = page.locator(".px-up");
+ok((await panel.count()) === 1 && (await page.locator(".px-up-title").innerText()) === "Uploading 3 Items to iCloud",
+ `the panel slides in: ${await page.locator(".px-up-title").innerText()}`);
+await say({ id: "B1:0", name: "beach.jpg", state: "sending", sent: 500 });
await page.waitForTimeout(100);
-ok(/Uploading/.test(await page.locator(".upload-tray-title").innerText()), "a file on its way shows as uploading");
-await page.locator(".upload-tray").getByRole("button", { name: "Cancel", exact: true }).click();
-await page.waitForTimeout(200);
-ok(JSON.stringify(await page.evaluate(() => window.__photoCancels?.at(-1))) === JSON.stringify({ ids: [], batch: "B1" }),
- "Cancel stops the batch through Photos, not Drive");
-await page.evaluate(() => window.__emit("quince://photo-upload", { id: "B1:0", batch: "B1", name: "beach.jpg", within: "", folder: false, error: null, state: "cancelled", sent: 0, total: 1000 }));
+ok(/500 B of 1000 B/.test(await panel.locator(".px-up-row", { hasText: "beach.jpg" }).innerText()), "a file on its way shows how much has gone");
+ok(/Pending/.test(await panel.locator(".px-up-row", { hasText: "dog.heic" }).innerText()), "one waiting reads Pending");
+await panel.getByRole("button", { name: "Stop dog.heic" }).click();
await page.waitForTimeout(100);
-ok(!/Uploading/.test(await page.locator(".upload-tray-title").innerText()), "once cancelled, nothing reads as still going");
-await page.getByRole("button", { name: "Close uploads" }).click();
-ok((await page.locator(".upload-tray").count()) === 0, "Done clears the tray");
+ok(JSON.stringify(await page.evaluate(() => window.__photoCancels?.at(-1))) === JSON.stringify({ ids: ["B1:2"], batch: null }), "its own ✕ stops just that one");
+await say({ id: "B1:0", name: "beach.jpg", state: "verifying", sent: 1000 });
+await page.waitForTimeout(100);
+ok((await page.locator(".px-up-title").innerText()) === "Finalizing Uploads", "while Apple makes the photo: Finalizing Uploads");
+await say({ id: "B1:0", name: "beach.jpg", state: "done", sent: 1000 });
+await page.waitForTimeout(150);
+ok((await page.locator(".px-up-title").innerText()) === "2 of 3 Items Not Uploaded" || (await page.locator(".px-up-title").innerText()) === "1 of 3 Items Not Uploaded",
+ `at the end, what did not go: ${await page.locator(".px-up-title").innerText()}`);
+ok(/can’t add this kind/.test(await panel.innerText()), "and why");
+await panel.getByRole("button", { name: "Done" }).click();
+await page.waitForTimeout(60);
+ok(/is-leaving/.test((await panel.getAttribute("class")) ?? ""), "Done slides it away");
+await page.waitForTimeout(400);
+ok((await page.locator(".px-up").count()) === 0, "and it is gone");
+// Stop Upload, for a batch still going.
+await page.evaluate(() => { window.__pick = ["/home/test/Pictures/ferry.jpg"]; });
+await page.getByRole("button", { name: "Add Photos" }).click();
+await page.waitForTimeout(300);
+await page.getByRole("button", { name: "Stop Upload" }).click();
+await page.waitForTimeout(150);
+ok((await page.evaluate(() => window.__photoCancels?.at(-1)))?.batch === "B2", "Stop Upload stops the whole batch");
await b.close();
process.exitCode = failures ? 1 : (process.exitCode ?? 0);
diff --git a/crates/quince-core/src/photos.rs b/crates/quince-core/src/photos.rs
index 5abbc70..a803d07 100644
--- a/crates/quince-core/src/photos.rs
+++ b/crates/quince-core/src/photos.rs
@@ -6,7 +6,7 @@
//! seen, and their download links, which expire, are never stored.
use crate::{Library, Result};
-use rusqlite::params;
+use rusqlite::{params, OptionalExtension};
use serde::{Deserialize, Serialize};
/// What a photo is, as Photos sorts it.
@@ -347,6 +347,31 @@ impl Library {
Ok(rows.collect::<std::result::Result<_, _>>()?)
}
+ /// One upload, by id, whatever its state: what the upload panel shows a picture of.
+ pub fn upload(&self, id: &str) -> Result<Option<Upload>> {
+ Ok(self
+ .conn
+ .query_row(
+ "SELECT id, batch, path, name, state, error, asset, added_at, album FROM photo_uploads
+ WHERE id = ?1",
+ params![id],
+ |r| {
+ Ok(Upload {
+ id: r.get(0)?,
+ batch: r.get(1)?,
+ path: r.get(2)?,
+ name: r.get(3)?,
+ state: r.get(4)?,
+ error: r.get(5)?,
+ asset: r.get(6)?,
+ added_at: r.get(7)?,
+ album: r.get(8)?,
+ })
+ },
+ )
+ .optional()?)
+ }
+
/// Finished uploads forgotten once their batch is: what the tray no longer shows.
pub fn forget_finished_uploads(&self) -> Result<()> {
self.conn.execute(
diff --git a/crates/quince-icloud/src/photos_upload.rs b/crates/quince-icloud/src/photos_upload.rs
index c43cc5b..4ba67fa 100644
--- a/crates/quince-icloud/src/photos_upload.rs
+++ b/crates/quince-icloud/src/photos_upload.rs
@@ -45,12 +45,13 @@ impl Refusal {
#[must_use]
pub fn words(&self) -> String {
match self {
- Refusal::Kind(ext) => format!("Photos doesn’t take .{ext} files."),
- Refusal::TooSmall => "That file is too small to be a photo.".into(),
- Refusal::TooLarge => "That file is larger than the 500 MB Photos takes.".into(),
- Refusal::NameTooLong => "That file’s name is longer than Photos takes.".into(),
- Refusal::Duplicate => "Already in your library.".into(),
- Refusal::OverQuota => "Your iCloud storage is full.".into(),
+ // icloud.com's own words, from its uploader (Uploader.* in ui.main.js).
+ Refusal::Kind(_) => "This item’s file type isn’t supported.".into(),
+ Refusal::TooSmall => "This item is too small to upload.".into(),
+ Refusal::TooLarge => "Item is too large to upload.".into(),
+ Refusal::NameTooLong => "File name too long.".into(),
+ Refusal::Duplicate => "Duplicate item.".into(),
+ Refusal::OverQuota => "Not enough space to upload item.".into(),
}
}
}
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 0784f15..4a9d00d 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -3598,7 +3598,22 @@ fn main() {
let wanted = photo_guid(uri.host(), uri.path());
let attachment = note_part(uri.path());
let picture = photos::requested(uri.path());
+ let queued = photos::requested_upload(uri.path());
tauri::async_runtime::spawn(async move {
+ // A file on its way into Photos, small, for the upload panel.
+ if let Some(id) = queued {
+ let response = match photos::upload_picture(&app, &id).await {
+ Ok(bytes) => tauri::http::Response::builder()
+ .status(200)
+ .header("Content-Type", image_type(&bytes))
+ .body(bytes),
+ Err(_) => tauri::http::Response::builder()
+ .status(404)
+ .body(Vec::new()),
+ };
+ responder.respond(response.unwrap_or_default());
+ return;
+ }
// A photo's picture: from the disk cache, or fetched from Apple once and kept.
if let Some((id, size)) = picture {
let response = match photos::picture(&app, &id, size).await {
diff --git a/src-tauri/src/photos.rs b/src-tauri/src/photos.rs
index 58adef0..6ee88ab 100644
--- a/src-tauri/src/photos.rs
+++ b/src-tauri/src/photos.rs
@@ -74,6 +74,55 @@ impl Size {
}
}
+/// A file on its way into Photos, as `quince://localhost/up/<upload id>` asks for it: the
+/// upload panel's picture of it. Only a file in the upload queue is ever read — the id is
+/// looked up there, never taken as a path.
+pub fn requested_upload(path: &str) -> Option<String> {
+ let path = crate::percent_decode(path.trim_start_matches('/'));
+ let id = path.strip_prefix("up/")?;
+ (!id.is_empty() && id.chars().all(|c| c.is_ascii_alphanumeric() || c == '-'))
+ .then(|| id.to_string())
+}
+
+/// A small square of a queued file, made once and kept for the run: decoding a large photo
+/// costs, so it is done off the async threads and never twice.
+pub async fn upload_picture(app: &AppHandle, id: &str) -> UiResult<Vec<u8>> {
+ static MADE: std::sync::OnceLock<Mutex<HashMap<String, Vec<u8>>>> = std::sync::OnceLock::new();
+ let made = MADE.get_or_init(Default::default);
+ if let Some(b) = made
+ .lock()
+ .unwrap_or_else(std::sync::PoisonError::into_inner)
+ .get(id)
+ {
+ return Ok(b.clone());
+ }
+ let u = app
+ .state::<Data>()
+ .0
+ .lock()
+ .await
+ .upload(id)
+ .map_err(|e| e.to_string())?
+ .ok_or("No such upload.")?;
+ let size = tokio::fs::metadata(&u.path)
+ .await
+ .map_err(|e| e.to_string())?
+ .len();
+ // Past this it is a video or something that would cost too much to decode for a row.
+ if size > 80 * 1024 * 1024 {
+ return Err("Too large to show.".into());
+ }
+ let bytes = tokio::fs::read(&u.path).await.map_err(|e| e.to_string())?;
+ let small = tokio::task::spawn_blocking(move || quince_media::avatar(&bytes, None, 120))
+ .await
+ .map_err(|e| e.to_string())?
+ .map_err(|e| e.to_string())?;
+ made.lock()
+ .unwrap_or_else(std::sync::PoisonError::into_inner)
+ .insert(id.to_string(), small.clone());
+ Ok(small)
+}
+
/// The photo and picture a `quince://` request asks for: `pic/<asset id>/<size>`, escaped as
/// Tauri escapes it.
pub fn requested(path: &str) -> Option<(String, Size)> {
@@ -1010,9 +1059,12 @@ async fn one(app: &AppHandle, u: quince_core::photos::Upload) -> bool {
refresh_photos(app).await;
return true;
}
+ // Already in the library: finished — never sent again — but not uploaded, which is
+ // how icloud.com lists it ("Duplicate item.").
Ok(Outcome::Refused(Refusal::Duplicate)) => {
- set("done", Some("Already in your library."), None).await;
- say(app, &u, "done", size, size, None);
+ let words = Refusal::Duplicate.words();
+ set("done", Some(&words), None).await;
+ say(app, &u, "failed", 0, size, Some(words));
return true;
}
Ok(Outcome::Refused(r)) => {
diff --git a/src/screens/PhotosView.tsx b/src/screens/PhotosView.tsx
index 06c5711..663f57b 100644
--- a/src/screens/PhotosView.tsx
+++ b/src/screens/PhotosView.tsx
@@ -20,7 +20,7 @@ import {
} from "../lib/ipc";
import { useSync } from "../lib/sync";
import { Notice } from "../components/Notice";
-import { UploadTray } from "../components/UploadTray";
+import { UploadPanel } from "./photos/UploadPanel";
import { RowMenu, type MenuEntry } from "../components/RowMenu";
import { Slideshow } from "./photos/Slideshow";
@@ -1158,6 +1158,9 @@ export function PhotosView() {
let cancelled = false;
listen<UploadEvent>(PHOTO_UPLOAD, (event) => {
const u = event.payload;
+ // "planned" says a batch is all listed; it rides on its first file's id, and kept, it
+ // took that file's place — the first photo of each batch went missing from the panel.
+ if (u.state === "planned") return;
setUploads((was) => {
const before = was.get(u.id);
if (before && (before.state === "done" || before.state === "failed" || before.state === "cancelled")) return was;
@@ -1730,7 +1733,7 @@ export function PhotosView() {
)}
{menu && <RowMenu at={menu.at} entries={menu.entries} onClose={() => setMenu(null)} />}
{show && <Slideshow photos={show.list} start={show.start} onClose={() => setShow(null)} />}
- <UploadTray uploads={[...uploads.values()]} onDismiss={dismissUploads} cancel={api.photosUploadCancel} />
+ <UploadPanel uploads={[...uploads.values()]} onDismiss={dismissUploads} cancel={api.photosUploadCancel} />
</div>
);
}
diff --git a/src/screens/photos/UploadPanel.tsx b/src/screens/photos/UploadPanel.tsx
new file mode 100644
index 0000000..371b761
--- /dev/null
+++ b/src/screens/photos/UploadPanel.tsx
@@ -0,0 +1,160 @@
+/**
+ * Photos' uploads, as icloud.com shows them: a panel that slides in at the right with the files
+ * on their way — each with its own picture, how much has gone, Pending with a way to stop it —
+ * and, at the end, what did not go and why ("Duplicate item."), until Done slides it away. A
+ * clean finish goes by itself after a moment.
+ */
+import { useCallback, useEffect, useRef, useState } from "react";
+import { convertFileSrc } from "@tauri-apps/api/core";
+import { Check, CloudAlert, CloudUpload, Info, X } from "lucide-react";
+import type { UploadEvent } from "../../lib/ipc";
+
+const ended = (u: UploadEvent) => u.state === "done" || u.state === "failed" || u.state === "cancelled";
+
+const bytes = (n: number) => {
+ if (n < 1024) return `${n} B`;
+ if (n < 1024 * 1024) return `${(n / 1024).toFixed(n < 10 * 1024 ? 1 : 0)} KB`;
+ if (n < 1024 * 1024 * 1024) return `${(n / 1024 / 1024).toFixed(1)} MB`;
+ return `${(n / 1024 / 1024 / 1024).toFixed(2)} GB`;
+};
+
+const items = (n: number) => `${n.toLocaleString()} ${n === 1 ? "Item" : "Items"}`;
+
+/** The file's own picture, made small by the app; a plain glyph for what cannot be drawn. */
+function Thumb({ id }: { id: string }) {
+ const [broken, setBroken] = useState(false);
+ if (broken) return <span className="px-up-thumb is-blank" aria-hidden="true" />;
+ return (
+ <img
+ className="px-up-thumb"
+ src={convertFileSrc(`up/${id}`, "quince")}
+ alt=""
+ loading="lazy"
+ decoding="async"
+ draggable={false}
+ onError={() => setBroken(true)}
+ />
+ );
+}
+
+export function UploadPanel({
+ uploads,
+ cancel,
+ onDismiss,
+}: {
+ uploads: UploadEvent[];
+ cancel: (ids: string[], batch?: string) => Promise<void>;
+ onDismiss: () => void;
+}) {
+ const files = uploads.filter((u) => !u.folder && u.state !== "planned");
+ const active = files.some((u) => !ended(u));
+ const failed = files.filter((u) => u.state === "failed");
+ const cancelled = files.filter((u) => u.state === "cancelled").length;
+ const total = files.reduce((n, u) => n + u.total, 0);
+ const sent = files.reduce((n, u) => n + (u.state === "done" ? u.total : u.sent), 0);
+ // The bar only ever goes forward: events arrive out of order, and a bar that steps back reads
+ // as something gone wrong.
+ const most = useRef(0);
+ if (files.length === 0) most.current = 0;
+ const percent = (most.current = Math.max(most.current, total ? sent / total : 0));
+ const processing = active && files.every((u) => ended(u) || u.state === "verifying");
+
+ // Leaving slides out first, then the panel goes.
+ const [leaving, setLeaving] = useState(false);
+ const close = useCallback(() => {
+ const still = typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
+ if (still) return onDismiss();
+ setLeaving(true);
+ window.setTimeout(() => {
+ setLeaving(false);
+ onDismiss();
+ }, 240);
+ }, [onDismiss]);
+
+ // A clean finish goes by itself; anything that did not go waits to be read.
+ useEffect(() => {
+ if (files.length === 0 || active || failed.length) return undefined;
+ const t = window.setTimeout(close, 4000);
+ return () => window.clearTimeout(t);
+ }, [files.length, active, failed.length, close]);
+
+ if (files.length === 0) return null;
+ const done = files.length - failed.length - cancelled;
+ const title = active
+ ? processing
+ ? "Finalizing Uploads"
+ : `Uploading ${items(files.length)} to iCloud`
+ : failed.length
+ ? failed.length === files.length
+ ? `${items(failed.length)} Not Uploaded`
+ : `${failed.length} of ${items(files.length)} Not Uploaded`
+ : cancelled && !done
+ ? "Upload Stopped"
+ : `${items(done)} Uploaded`;
+ const batches = [...new Set(files.filter((u) => !ended(u)).map((u) => u.batch))];
+
+ return (
+ <aside className={`px-up${leaving ? " is-leaving" : ""}`} aria-label="Uploads" aria-live="polite">
+ <header className="px-up-head">
+ {active ? (
+ <button className="px-up-link" onClick={() => batches.forEach((b) => void cancel([], b))}>
+ Stop Upload
+ </button>
+ ) : (
+ <button className="px-up-link" onClick={close}>
+ Done
+ </button>
+ )}
+ </header>
+ <div className="px-up-hero">
+ {active ? (
+ <CloudUpload className="px-up-icon" size={34} strokeWidth={1.6} aria-hidden="true" />
+ ) : failed.length ? (
+ <CloudAlert className="px-up-icon" size={34} strokeWidth={1.6} aria-hidden="true" />
+ ) : (
+ <Check className="px-up-icon" size={34} strokeWidth={1.8} aria-hidden="true" />
+ )}
+ <h2 className="px-up-title">{title}</h2>
+ {active && (
+ <div className="px-up-bar" role="progressbar" aria-valuemin={0} aria-valuemax={100} aria-valuenow={Math.round(percent * 100)}>
+ <span style={{ transform: `scaleX(${percent})` }} />
+ </div>
+ )}
+ </div>
+ <ul className="px-up-rows">
+ {(active ? files : [...failed, ...files.filter((u) => u.state !== "failed")]).map((u) => (
+ <li key={u.id} className={`px-up-row is-${u.state}`}>
+ <Thumb id={u.id} />
+ <span className="px-up-text">
+ <span className="px-up-name">{u.name}</span>
+ <span className="px-up-sub">
+ {u.state === "failed"
+ ? u.error ?? "Not uploaded."
+ : u.state === "cancelled"
+ ? "Stopped"
+ : u.state === "done"
+ ? bytes(u.total)
+ : u.state === "verifying"
+ ? "Processing…"
+ : `${bytes(u.sent)} of ${bytes(u.total)}`}
+ </span>
+ </span>
+ <span className="px-up-end">
+ {u.state === "waiting" && (
+ <>
+ <span className="px-up-pending">Pending</span>
+ <button className="px-up-stop" aria-label={`Stop ${u.name}`} title="Stop" onClick={() => void cancel([u.id])}>
+ <X size={11} strokeWidth={3} aria-hidden="true" />
+ </button>
+ </>
+ )}
+ {(u.state === "sending" || u.state === "verifying") && <span className="px-up-spin" aria-label="Uploading" />}
+ {u.state === "done" && <Check className="px-up-ok" size={15} strokeWidth={2.4} aria-label="Uploaded" />}
+ {u.state === "failed" && <Info className="px-up-why" size={15} strokeWidth={2} aria-label={u.error ?? "Not uploaded"} />}
+ </span>
+ </li>
+ ))}
+ </ul>
+ </aside>
+ );
+}
diff --git a/src/styles/photos.css b/src/styles/photos.css
index 1b462d6..a428ee2 100644
--- a/src/styles/photos.css
+++ b/src/styles/photos.css
@@ -532,3 +532,63 @@
.px-children .px-source, .px-children .px-naming { padding-left: 30px; }
/* An album's cover in the sidebar, where a symbol stands for the others. */
.px-cover { flex: none; width: 18px; height: 18px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--text) 18%, transparent); }
+
+/* ---- uploads: a panel at the right, as icloud.com shows them --------------------------------- */
+.px-up {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 7;
+ width: min(340px, 88%);
+ display: flex;
+ flex-direction: column;
+ /* Solid, as icloud.com's: the toolbar's controls must not show through the words. */
+ background: var(--sheet);
+ box-shadow: inset 0.5px 0 0 var(--separator), -18px 0 40px rgba(0, 0, 0, 0.18);
+ animation: px-up-in 320ms var(--spring-smooth) both;
+}
+.px-up.is-leaving { animation: px-up-out 240ms ease-in both; }
+@keyframes px-up-in { from { transform: translateX(100%); } to { transform: none; } }
+@keyframes px-up-out { from { transform: none; opacity: 1; } to { transform: translateX(100%); opacity: 0.6; } }
+@media (prefers-reduced-motion: reduce) { .px-up, .px-up.is-leaving { animation: none; } }
+.px-up-head { padding: 12px 16px 0; }
+.px-up-link { padding: 4px 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--t-13); font-weight: 500; cursor: default; }
+.px-up-link:hover { text-decoration: underline; }
+.px-up-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 22px 16px; text-align: center; }
+.px-up-icon { color: var(--accent); }
+.px-up-title { margin: 0; font-size: var(--t-15, 15px); font-weight: 700; }
+.px-up-bar { width: 100%; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 12%, transparent); overflow: hidden; }
+.px-up-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform 240ms ease-out; }
+.px-up-rows { flex: 1; min-height: 0; margin: 0; padding: 0 8px 12px; list-style: none; overflow-y: auto; }
+.px-up-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
+.px-up-thumb { flex: none; width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: color-mix(in srgb, var(--text) 8%, transparent); }
+.px-up-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
+.px-up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-13); }
+.px-up-sub { color: var(--text-2); font-size: var(--t-11); font-variant-numeric: tabular-nums; }
+.px-up-row.is-failed .px-up-sub { color: var(--text-2); }
+.px-up-end { flex: none; display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: var(--t-12, 12px); }
+.px-up-stop {
+ display: grid;
+ place-items: center;
+ width: 16px;
+ height: 16px;
+ padding: 0;
+ border: 0;
+ border-radius: 50%;
+ background: var(--text-3);
+ color: var(--bg);
+ cursor: default;
+}
+.px-up-stop:hover { background: var(--text-2); }
+.px-up-ok { color: #30d158; }
+.px-up-why { color: var(--text-3); }
+.px-up-spin {
+ width: 16px;
+ height: 16px;
+ border-radius: 50%;
+ border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
+ border-top-color: var(--accent);
+ animation: px-spin 800ms linear infinite;
+}
+@keyframes px-spin { to { transform: rotate(360deg); } }