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"
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}
-
- )}