From ce961244ca4de1e96f19739016481ceec9bfab48 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Wed, 8 Jul 2026 14:36:51 -0500 Subject: [PATCH 1/2] move toasts to top middle of page, tweak size and anim --- src/App.tsx | 53 +++++++++++++++++++++++++++----------------------- src/styles.css | 27 ++++++++++++++++--------- 2 files changed, 47 insertions(+), 33 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 0b99b82..fe7e484 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -107,7 +107,7 @@ function useIsWide(): boolean { ) } -function useToast(duration = 1500) { +function useToast(duration = 1400) { const [toast, setToast] = useState<{ content: React.ReactNode key: number @@ -1689,33 +1689,38 @@ function DiffView() { /> )}
- { - const entries = Object.entries(viewed).map(([file, hash]) => ({ file, hash })) - if (entries.length === 0) return - // Mirror single-file unview, which also opens the file. - setCollapsed((prev) => { - const next = { ...prev } - for (const { file } of entries) next[file] = false - return next - }) - unviewAllMutation.mutate(entries) - }} - /> + {/* Wrapper is the positioning context for the toast, which floats + centered over the header bar without participating in its flex row + (the bar's two sides can meet on narrow viewports). */} +
+ { + const entries = Object.entries(viewed).map(([file, hash]) => ({ file, hash })) + if (entries.length === 0) return + // Mirror single-file unview, which also opens the file. + setCollapsed((prev) => { + const next = { ...prev } + for (const { file } of entries) next[file] = false + return next + }) + unviewAllMutation.mutate(entries) + }} + /> + {toast && ( +
+ {toast.content} +
+ )} +
{showHelp && setShowHelp(false)} />} {showCommentsInfo && ( setShowCommentsInfo(false)} /> )} - {toast && ( -
- {toast.content} -
- )} Date: Wed, 8 Jul 2026 16:16:46 -0500 Subject: [PATCH 2/2] bump to 0.2.4 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 48b4a00..6cb17b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@oxide/skepsis", - "version": "0.2.3", + "version": "0.2.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@oxide/skepsis", - "version": "0.2.3", + "version": "0.2.4", "bin": { "skepsis": "dist/cli.js" }, diff --git a/package.json b/package.json index 91b88c6..5cc13a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oxide/skepsis", - "version": "0.2.3", + "version": "0.2.4", "repository": "github:oxidecomputer/skepsis", "bin": { "skepsis": "dist/cli.js"