From 5969a1df96a0c6b1f7c9a60029729ece807287de Mon Sep 17 00:00:00 2001 From: shenlvkang-collab Date: Tue, 1 Sep 2026 12:29:02 +0800 Subject: [PATCH] fix(mobile): give the Add Case modal a reachable submit button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mobile.css hides #createCaseModal's .set-foot below 860px, and that modal's header — unlike Settings' — carries no set-head-save. So on a phone the Create/Link button existed nowhere and the modal could not be submitted at all. Adds the header button and drives both together through switchCaseModalTab() and submitCaseModal(), so whichever one is pressed the other shows the same pending state and is equally unclickable. Following the Settings pattern also means Add Case picks up the existing .set-head-actions:has(.set-head-save) tray and .set-head-save sizing with no new CSS; the mobile.css comment that still listed Add Case as a lone-× sheet is corrected to match. --- .changeset/fix-mobile-add-case-submit.md | 16 +++++++++ src/web/public/index.html | 7 ++++ src/web/public/mobile.css | 6 ++-- src/web/public/session-ui.js | 41 ++++++++++++++++-------- 4 files changed, 55 insertions(+), 15 deletions(-) create mode 100644 .changeset/fix-mobile-add-case-submit.md diff --git a/.changeset/fix-mobile-add-case-submit.md b/.changeset/fix-mobile-add-case-submit.md new file mode 100644 index 00000000..e15097e6 --- /dev/null +++ b/.changeset/fix-mobile-add-case-submit.md @@ -0,0 +1,16 @@ +--- +"aicodeman": patch +--- + +fix(mobile): give the Add Case modal a reachable submit button + +`mobile.css` hides `#createCaseModal`'s `.set-foot` on phones, and unlike the Settings +modal that header carries no `set-head-save` — so the Create/Link button existed nowhere +on a phone and the modal could not be submitted at all. Adds the header button and drives +both together, so whichever one is pressed the other shows the same pending state and is +equally unclickable. + +Add Case follows the Settings modal's header-save pattern, so it picks up the existing +`.set-head-actions:has(.set-head-save)` tray and `.set-head-save` sizing below 860px with no +new CSS; the `mobile.css` comment that still listed Add Case as a lone-× sheet is updated to +match. diff --git a/src/web/public/index.html b/src/web/public/index.html index 78eff9d3..9391b9c2 100644 --- a/src/web/public/index.html +++ b/src/web/public/index.html @@ -2582,8 +2582,15 @@