diff --git a/apps/client/src/features/page/components/temporary-note-banner.tsx b/apps/client/src/features/page/components/temporary-note-banner.tsx index f5bef76a..d30087f1 100644 --- a/apps/client/src/features/page/components/temporary-note-banner.tsx +++ b/apps/client/src/features/page/components/temporary-note-banner.tsx @@ -1,4 +1,11 @@ -import { Button, Group, Paper, Text } from "@mantine/core"; +import { + ActionIcon, + Button, + Group, + Paper, + Text, + Tooltip, +} from "@mantine/core"; import { IconClockHour4, IconTrash } from "@tabler/icons-react"; import { useState } from "react"; import { Trans, useTranslation } from "react-i18next"; @@ -70,7 +77,14 @@ export function TemporaryNoteBanner({ slugId }: TemporaryNoteBannerProps) { return ( - + {/* A non-zero flex-basis lets the outer wrap="wrap" drop the buttons to + their own row on narrow screens; flex:1 (basis 0) never wraps and + instead crushes the text into a one-word-per-line ladder. */} + {canEdit && ( - - - - + <> + {/* Desktop: full labeled buttons. */} + + + + + {/* Mobile: icon-only actions so they never overflow the narrow row. */} + + + + + + + + + + + + + )}