diff --git a/apps/client/src/widgets/note_icon.tsx b/apps/client/src/widgets/note_icon.tsx index 6c79bc8017..5f9c1fb81d 100644 --- a/apps/client/src/widgets/note_icon.tsx +++ b/apps/client/src/widgets/note_icon.tsx @@ -86,7 +86,7 @@ function MobileNoteIconSwitcher({ note, icon }: { className="icon-switcher note-icon-widget" scrollable > - {note && setModalShown(false)} columnCount={Math.floor(windowWidth / ICON_SIZE)} />} + {note && setModalShown(false)} columnCount={Math.max(1, Math.floor(windowWidth / ICON_SIZE))} />} ), document.body)}