Dough Git

commit

Let the hold menu close on phones

commit
a8bff35f188a21d92cb69fcdca13d6a850dbe9d8
author
Clove Twilight <[email protected]>
date
2026-10-31 09:00
Closing it cleared the thread it was for while its exit transition was still
reading it, so the transition threw and the menu stayed on screen. It now
keeps what it opened with. Also drops a vite setting left over from iconsax.

diff --git a/email/src/web/components/ActionMenu.svelte b/email/src/web/components/ActionMenu.svelte
index 6b35ce8..1137029 100644
--- a/email/src/web/components/ActionMenu.svelte
+++ b/email/src/web/components/ActionMenu.svelte
@@ -21,9 +21,9 @@
   import type { HoldPoint } from "./SwipeRow.svelte";
 
   let {
-    title,
-    items,
-    at,
+    title: openTitle,
+    items: openItems,
+    at: openAt,
     onclose,
   }: {
     title: string;
@@ -32,6 +32,15 @@
     onclose: () => void;
   } = $props();
 
+  // Kept as they were when the menu opened. The list closes it by clearing
+  // what these came from, and the closing transition still renders after that.
+  // svelte-ignore state_referenced_locally
+  const title = openTitle;
+  // svelte-ignore state_referenced_locally
+  const items = openItems;
+  // svelte-ignore state_referenced_locally
+  const at = openAt;
+
   let menu: HTMLDivElement;
   let menuWidth = $state(0);
   let menuHeight = $state(0);
diff --git a/email/vite.config.ts b/email/vite.config.ts
index 273433e..5d07202 100644
--- a/email/vite.config.ts
+++ b/email/vite.config.ts
@@ -6,8 +6,4 @@ import { defineConfig } from "vite";
 // with its D1/R2 bindings (local copies under .wrangler/).
 export default defineConfig({
   plugins: [svelte(), cloudflare()],
-  // iconsax fetches its icon data relative to its own file, which pre-bundling breaks
-  optimizeDeps: {
-    exclude: ["iconsax"],
-  },
 });