Skip to content

Conversation

@buberdds
Copy link
Collaborator

@buberdds buberdds commented Oct 23, 2025

@github-actions
Copy link

github-actions bot commented Oct 23, 2025

Deployed to Cloudflare Pages

Latest commit: 5df23e0c9da8fcc796df1a5a602736056d10e320
Status:✅ Deploy successful!
Preview URL: https://c5012ca6.oasis-ui.pages.dev
Alias: https://pr-78.oasis-ui.pages.dev

@buberdds buberdds force-pushed the mz/cards branch 4 times, most recently from a5b6520 to c06fadb Compare October 24, 2025 10:04

type CardTitleProps = React.ComponentProps<typeof BaseCardTitle>

export const CardTitle = ({ className, ...props }: CardTitleProps) => (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

@buberdds buberdds Oct 27, 2025

Choose a reason for hiding this comment

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

welp it's how radix/shadcn card works. Now issue is more visible due to text-sm in content. CardContent affects Card width, CardHeader is having layout issues due to grid display. I did not find any magic tailwind class to fix that nicely. We can use two workarounds:

  1. control min-w on component level in app/storybook if content is very short
  2. overwrite radix/shadcn layout of CardsHader/Title/Action

I would go with 1 tbh because 2 is less predictible

https://bf5f8bfa.oasis-ui.pages.dev/?path=/story/components-card--with-action

@buberdds buberdds merged commit a180a44 into master Oct 27, 2025
4 checks passed
@buberdds buberdds deleted the mz/cards branch October 27, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants