diff --git a/src/frontend/src/components/items/AttachmentLink.tsx b/src/frontend/src/components/items/AttachmentLink.tsx index 0995ee20c0..8d634038c7 100644 --- a/src/frontend/src/components/items/AttachmentLink.tsx +++ b/src/frontend/src/components/items/AttachmentLink.tsx @@ -1,4 +1,4 @@ -import { Anchor, Group } from '@mantine/core'; +import { Anchor, Box, Group } from '@mantine/core'; import { IconFile, IconFileTypeCsv, @@ -85,16 +85,25 @@ export function AttachmentLink({ }, [attachment, external]); return ( - - {thumbnail ? ( - - ) : external ? ( - - ) : ( - attachmentIcon(attachment) - )} + + + {thumbnail ? ( + + ) : external ? ( + + ) : ( + attachmentIcon(attachment) + )} + {!!attachment ? ( - + {text} ) : ( diff --git a/src/frontend/src/styles/overrides.css b/src/frontend/src/styles/overrides.css index 410aeac98d..2889929c52 100644 --- a/src/frontend/src/styles/overrides.css +++ b/src/frontend/src/styles/overrides.css @@ -29,6 +29,14 @@ table-layout: auto !important; } +/* + * Prevent cell content from overflowing into adjacent columns + * (e.g. when the user has resized a column to a fixed width) + */ +.mantine-datatable-table td { + overflow: hidden; +} + /* * Force mantine table to 100% so columns stretch to fill. */