diff --git a/client/src/components/Planner/TransitJourneyModal.test.tsx b/client/src/components/Planner/TransitJourneyModal.test.tsx index a746e9878..8c9ba800f 100644 --- a/client/src/components/Planner/TransitJourneyModal.test.tsx +++ b/client/src/components/Planner/TransitJourneyModal.test.tsx @@ -84,6 +84,15 @@ describe('TransitJourneyModal', () => { expect(bold?.textContent).toBe('bold') }) + it('FE-PLANNER-TRANSITJOURNEY-008: existing notes open rendered as markdown, not raw text', () => { + const res = { ...makeReservation(), notes: 'bring **wefwe** along' } + render() + // Preview tab is active on open: bold is rendered, no raw asterisks visible. + const bold = document.querySelector('.collab-note-md strong') + expect(bold?.textContent).toBe('wefwe') + expect(screen.queryByDisplayValue(/\*\*wefwe\*\*/)).not.toBeInTheDocument() + }) + it('FE-PLANNER-TRANSITJOURNEY-007: the markdown toolbar wraps the note text', async () => { const user = userEvent.setup() render() diff --git a/client/src/components/Planner/transitDisplay.tsx b/client/src/components/Planner/transitDisplay.tsx index 2fb8a4093..aff2604d8 100644 --- a/client/src/components/Planner/transitDisplay.tsx +++ b/client/src/components/Planner/transitDisplay.tsx @@ -32,15 +32,20 @@ export function TransitWalkDivider({ leg, t, size = 'md' }: { size?: 'sm' | 'md' }) { const mins = leg.duration ? Math.round(leg.duration / 60) : null - const ruleStyle: React.CSSProperties = { flex: 1, borderTop: '1.5px dashed var(--text-faint)', opacity: 0.75, minWidth: 12 } + // Hairlines that fade towards the outer edges — strongest next to the text. + const rule = (dir: 'left' | 'right'): React.CSSProperties => ({ + flex: 1, height: 1, minWidth: 12, borderRadius: 1, + background: `linear-gradient(to ${dir}, var(--text-faint), transparent)`, + opacity: 0.55, + }) return (
- + {t('transit.walkTo', { name: leg.to?.name || '' })}{mins ? ` · ${t('transit.min', { count: mins })}` : ''} - +
) }