diff --git a/superset-frontend/src/components/ListViewCard/index.tsx b/superset-frontend/src/components/ListViewCard/index.tsx index d7ebecfdd67..1cc680b0a01 100644 --- a/superset-frontend/src/components/ListViewCard/index.tsx +++ b/superset-frontend/src/components/ListViewCard/index.tsx @@ -97,17 +97,18 @@ const TitleContainer = styled.div` `; const TitleLink = styled.span` + max-width: 50%; + overflow: hidden; + text-overflow: ellipsis; & a { color: ${({ theme }) => theme.colors.grayscale.dark1} !important; - overflow: hidden; - text-overflow: ellipsis; - - & + .title-right { - margin-left: ${({ theme }) => theme.gridUnit * 2}px; - } } `; +const TitleRight = styled.span` + margin-left: ${({ theme }) => theme.gridUnit * 2}px; +`; + const CoverFooter = styled.div` display: flex; flex-wrap: nowrap; @@ -246,7 +247,7 @@ function ListViewCard({ {title} - {titleRight &&
{titleRight}
} + {titleRight && {titleRight}}
{actions}