diff --git a/superset-frontend/packages/superset-ui-core/src/components/ListViewCard/index.tsx b/superset-frontend/packages/superset-ui-core/src/components/ListViewCard/index.tsx index e9271d0de6a0..a99c59e9f23b 100644 --- a/superset-frontend/packages/superset-ui-core/src/components/ListViewCard/index.tsx +++ b/superset-frontend/packages/superset-ui-core/src/components/ListViewCard/index.tsx @@ -48,6 +48,15 @@ const StyledCard = styled(Card)` transform: translateY(0); } } + + /* Truncate long descriptions (e.g. localized "Modified at" timestamps) + so they don't overflow the card. The full value remains accessible + via the tooltip wrapper applied around the description. */ + .ant-card-meta-description { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } `} `; @@ -258,7 +267,15 @@ function ListViewCard({ } - description={description} + description={ + description ? ( + + {description} + + ) : ( + description + ) + } avatar={avatar || null} /> )}