Skip to content

Commit

Permalink
[docs] set height to be max of parent for doc cards (#27292)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpadden authored Jan 22, 2025
1 parent 52e620f commit e9afa44
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/docs-beta/src/theme/DocCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ function useCategoryItemsPlural() {

function CardContainer({href, children}: {href: string; children: ReactNode}): ReactNode {
return (
<Link href={href} className={clsx('card padding--lg', styles.cardContainer)}>
<Link
href={href}
className={clsx('card padding--lg', styles.cardContainer)}
style={{height: '100%'}}
>
{children}
</Link>
);
}

function truncate(text: string, max: number) {
return text.length > max ? text.slice(0, max).split(' ').slice(0, -1).join(' ') + ' ...' : text;
}

function CardLayout({
href,
logo,
Expand Down

1 comment on commit e9afa44

@github-actions
Copy link

@github-actions github-actions bot commented on e9afa44 Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagster-docs-beta ready!

✅ Preview
https://dagster-docs-beta-3gdr3jq2s-elementl.vercel.app

Built with commit e9afa44.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.