From 7d73133138143333c2b3e58779af95eb60a91efa Mon Sep 17 00:00:00 2001 From: HugoFara Date: Sat, 4 Jul 2026 00:38:12 +0200 Subject: [PATCH 1/2] fix(reading): make the term-edit modal non-blocking while reading Clicking a word already opened a compact, non-blocking popover, but "Add"/"Edit" switched to a stock Bulma modal: an 86%-opacity backdrop covering the full viewport plus a card filling ~95% of the screen height on mobile, hiding the text the reader was just looking at. Drop the modal-background dimming and, on mobile, pin the card to the bottom as a capped-height sheet (mirrors the existing word-popover bottom-drawer treatment). Split the edit form into tabs (Translation / Example / Notes / Tags), shown one at a time via the wordEditForm Alpine component, so the sheet fits a 50vh cap without scrolling and most of the reading text stays visible. Applied to both word_modal.php and multi_word_modal.php. --- src/Modules/Text/Views/multi_word_modal.php | 2 +- src/Modules/Text/Views/word_modal.php | 313 ++++++++++-------- src/frontend/css/base/styles.css | 27 ++ .../vocabulary/components/word_edit_form.ts | 45 ++- .../components/word_edit_form.test.ts | 83 +++++ 5 files changed, 330 insertions(+), 140 deletions(-) diff --git a/src/Modules/Text/Views/multi_word_modal.php b/src/Modules/Text/Views/multi_word_modal.php index a89e00856..99cfb2ea6 100644 --- a/src/Modules/Text/Views/multi_word_modal.php +++ b/src/Modules/Text/Views/multi_word_modal.php @@ -22,7 +22,7 @@ ?>
-