The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(mobile): show a place's full name in its details sheet
Mauriceac01925be79c
diff --git a/client/src/mobile/screens/trip/sheets/MPlaceSheet.test.tsx b/client/src/mobile/screens/trip/sheets/MPlaceSheet.test.tsxindex c758ad2f9..892d2e293 100644--- a/client/src/mobile/screens/trip/sheets/MPlaceSheet.test.tsx+++ b/client/src/mobile/screens/trip/sheets/MPlaceSheet.test.tsx@@ -122,3 +122,15 @@ describe('MPlaceSheet ask the assistant', () => {expect(chatOf(useAssistantStore.getState(), 5).focus).toEqual({ placeIds: [42] })})})++describe('MPlaceSheet header (#3140)', () => {+ it('lets a long place name wrap instead of cutting it to one line', () => {+ const longName = 'Broad Street Christmas Lights & Market'+ render(<MPlaceSheet planner={planner({ selectedPlace: buildPlace({ id: 7, name: longName, address: 'Broad Street, RG1 2AF, Reading' }) })} shell={shell} />)++ const title = screen.getByText(longName)+ expect(title).not.toHaveClass('truncate')+ expect(title).toHaveClass('break-words')+ expect(screen.getByText('Broad Street, RG1 2AF, Reading').closest('div')).not.toHaveClass('truncate')+ })+})diff --git a/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx b/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsxindex 4f7036a84..0b4e5eafc 100644--- a/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx+++ b/client/src/mobile/screens/trip/sheets/MPlaceSheet.tsx@@ -208,12 +208,14 @@ export default function MPlaceSheet({ planner, shell }: MTripSheetsProps) {</PlacePhotoGallery></div><div className="min-w-0 flex-1">- <div className="flex items-center gap-1.5">- <span dir="auto" className="min-w-0 truncate text-[1rem] font-bold leading-snug">{place.name}</span>+ <div className="flex items-start gap-1.5">+ {/* The sheet is where a place is read in full, so its name wraps+ onto as many lines as it needs, as on the desktop (#3140). */}+ <span dir="auto" className="min-w-0 break-words text-[1rem] font-bold leading-snug [overflow-wrap:anywhere]">{place.name}</span>{/* Accepted out of the traveller's own recordings — the samemark the desktop inspector carries. */}{place.source === 'dawarich' && (- <span className="flex-none overflow-hidden rounded-[5px]">+ <span className="mt-[3px] flex-none overflow-hidden rounded-[5px]"><DawarichIcon size={15} /></span>)}