Skip to content
Snippets Groups Projects
Unverified Commit 06d3244f authored by Gustavo Saiani's avatar Gustavo Saiani Committed by GitHub
Browse files

Give home card title a max-width (#21498)

parent 1c9a76b7
Branches
Tags
No related merge requests found
import styled from "@emotion/styled";
import { alpha, color } from "metabase/lib/colors";
import Link from "metabase/core/components/Link";
import { breakpointMinSmall } from "metabase/styled-components/theme";
export const CardRoot = styled(Link)`
display: flex;
......@@ -10,6 +11,11 @@ export const CardRoot = styled(Link)`
border-radius: 0.5rem;
background-color: ${color("white")};
box-shadow: 0 7px 20px ${color("shadow")};
max-width: 100%;
${breakpointMinSmall} {
max-width: 50%;
}
&:hover {
box-shadow: 0 10px 22px ${alpha("shadow", 0.09)};
......
......@@ -16,4 +16,5 @@ export const CardTitle = styled(Ellipsified)`
font-size: 1rem;
font-weight: bold;
margin-left: 1rem;
max-width: 100%;
`;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment