From 490d940cd1488f56219cbded36f108b4de9bfb23 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 2 Feb 2026 13:23:55 +0200 Subject: [PATCH] feat(mobile/note_icon): improve height and fit --- apps/client/src/widgets/note_icon.css | 4 ++++ apps/client/src/widgets/note_icon.tsx | 1 + 2 files changed, 5 insertions(+) diff --git a/apps/client/src/widgets/note_icon.css b/apps/client/src/widgets/note_icon.css index 70e2f018d..2e2cf3dc0 100644 --- a/apps/client/src/widgets/note_icon.css +++ b/apps/client/src/widgets/note_icon.css @@ -129,6 +129,8 @@ body.mobile .modal.icon-switcher { .modal-body { padding: 0; + display: flex; + flex-direction: column; > .filter-row { padding: 0 var(--bs-modal-padding) var(--bs-modal-padding) var(--bs-modal-padding); @@ -137,5 +139,7 @@ body.mobile .modal.icon-switcher { .icon-list { margin: auto; + flex-grow: 1; + height: 100%; } } diff --git a/apps/client/src/widgets/note_icon.tsx b/apps/client/src/widgets/note_icon.tsx index 96c26a8c6..2b78f052e 100644 --- a/apps/client/src/widgets/note_icon.tsx +++ b/apps/client/src/widgets/note_icon.tsx @@ -82,6 +82,7 @@ function MobileNoteIconSwitcher({ note, icon }: { size="xl" show={modalShown} onHidden={() => setModalShown(false)} className="icon-switcher note-icon-widget" + scrollable > {note && setModalShown(false)} columnCount={Math.floor(windowWidth / 48)} />}