Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions src/components/MDXComponents/DocHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,7 @@ export function DocHomeCardContainer(props: any) {
sm: "grid",
},
flexDirection: "column",
gridTemplateColumns: {
sm: "repeat(2, minmax(0, 1fr))",
lg: "repeat(3, minmax(0, 1fr))",
},
gridTemplateColumns: "repeat(auto-fit, minmax(224px, 30%))",
gap: "1.25rem",
justifyContent: "start",

Expand All @@ -366,7 +363,6 @@ interface DocHomeCardProps {
icon: string;
label: string;
colSpan?: 1 | 2 | 3;
colspan?: 1 | 2 | 3;
actionBtnLabel?: string;
ctaGraphic?: string;
}
Expand All @@ -378,11 +374,9 @@ export function DocHomeCard(props: React.PropsWithChildren<DocHomeCardProps>) {
icon = "global-tidb-product",
label,
colSpan,
colspan,
actionBtnLabel,
ctaGraphic,
} = props;
const cardColSpan = colSpan ?? colspan;

return (
<Box
Expand All @@ -397,12 +391,7 @@ export function DocHomeCard(props: React.PropsWithChildren<DocHomeCardProps>) {
padding: "24px",
transition: ".5s",
border: `1px solid ${theme.palette.carbon[400]}`,
gridColumn: cardColSpan
? {
sm: `span ${Math.min(cardColSpan, 2)}`,
lg: `span ${cardColSpan}`,
}
: undefined,
gridColumn: colSpan ? `span ${colSpan}` : undefined,
Comment thread
lilin90 marked this conversation as resolved.

"&:hover": {
background:
Expand Down