{c.body}
{message}
} {publicHint && !guest && ( -{t('journey.comments.publicHint')}
++ {t('journey.comments.publicHint')} +
)} )} @@ -252,10 +275,12 @@ export function MemberEntryComments({ entryId, thread, defaultOpen, + mobile, }: { entryId: number; thread: MemberThreadState; defaultOpen?: boolean; + mobile?: boolean; }) { const { t } = useTranslation(); const toast = useToast(); @@ -268,6 +293,7 @@ export function MemberEntryComments({ comments={thread.byEntry.get(entryId) ?? []} canWrite defaultOpen={defaultOpen} + mobile={mobile} canModerate={thread.canModerate} publicHint onAdd={async (body) => ((await thread.add(entryId, body)) ? null : t('journey.comments.failed'))} diff --git a/client/src/components/Journey/JourneyEntryCover.test.tsx b/client/src/components/Journey/JourneyEntryCover.test.tsx index 0a578ab48..38f289e81 100644 --- a/client/src/components/Journey/JourneyEntryCover.test.tsx +++ b/client/src/components/Journey/JourneyEntryCover.test.tsx @@ -134,14 +134,13 @@ describe('JourneyEntryCover', () => { expect(container.querySelector('svg.lucide-play')).toBeNull() }) - it('FE-JRN-COVER-011: only the phone draws a card without a photo in the deep day colour, opaque even as a suggestion', () => { + it('FE-JRN-COVER-011: the phone shows a neutral surface for suggestions without photos', () => { const entry = buildEntry({ photos: [], type: 'skeleton' }) const phone = render(
{address.address}
@@ -80,7 +86,7 @@ export default function TripMailForward({ tripId }: { tripId: number }): ReactEl
type="button"
onClick={() => void copy()}
aria-label={t('mailInbox.settings.copy')}
- className="grid h-8 w-8 flex-none place-items-center rounded-lg bg-surface-card text-content-muted hover:text-content"
+ className={`grid flex-none place-items-center rounded-lg text-content-muted hover:text-content ${mobile ? 'size-11 bg-m-sheetop' : 'size-8 bg-surface-card'}`}
>