From 5bcb377b9c77add9cf50ae7f5ab73d5899eb41db Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 4 Oct 2026 13:40:49 +0200 Subject: [PATCH] fix(mobile): trim the note wrap classes to one rule and cover the kept line breaks overflow-wrap:anywhere alone lets a long URL wrap inside a flex row; break-words is overridden by it and word-break:break-word is deprecated. MarkdownText already gets the rule from .collab-note-md, so its call sites drop the duplicate. --- client/src/components/shared/MarkdownText.tsx | 2 +- client/src/index.css | 2 +- .../screens/trip/plan/MPlanTimelineRows.tsx | 6 +++--- .../mobile/screens/trip/sheets/MPlaceSheet.tsx | 2 +- .../src/mobile/screens/trip/tabs/MCollabNotes.tsx | 4 ++-- .../unit/mobile/trip/MPlanTimelineRows.test.tsx | 15 +++++++++++++-- 6 files changed, 21 insertions(+), 10 deletions(-) diff --git a/client/src/components/shared/MarkdownText.tsx b/client/src/components/shared/MarkdownText.tsx index 3e622100a..f65be4069 100644 --- a/client/src/components/shared/MarkdownText.tsx +++ b/client/src/components/shared/MarkdownText.tsx @@ -28,7 +28,7 @@ export default function MarkdownText({ children, className = '', clamp = false } }) { return (
{time && {time}} - {title} + {title}
{titleExtra && ( - {titleExtra} + {titleExtra} )} {detail && ( // Rendered, not raw: a note written with the formatting bar would // otherwise read as `**asterisks**` on the phone. - {detail} + {detail} )}
{chrome.editing && {reorder}} diff --git a/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx b/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx index 8b9d183bc..884dbbfcc 100644 --- a/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx +++ b/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx @@ -474,7 +474,7 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) { {day.title || t('planner.dayN', { n: (day.day_number ?? planner.days.indexOf(day) + 1) || '?' })} )} -
{assignment.notes}
+
{assignment.notes}
))} diff --git a/client/src/mobile/screens/trip/tabs/MCollabNotes.tsx b/client/src/mobile/screens/trip/tabs/MCollabNotes.tsx index 2d75f5c48..cb7d77fdb 100644 --- a/client/src/mobile/screens/trip/tabs/MCollabNotes.tsx +++ b/client/src/mobile/screens/trip/tabs/MCollabNotes.tsx @@ -360,7 +360,7 @@ function NoteCardRow({ note, color, canEdit, onTap, onTogglePin, onDelete, t }: