bluzky / salad_ui

Phoenix Liveview component library inspired by shadcn UI
https://salad-storybook.fly.dev/welcome
MIT License
245 stars 12 forks source link

Implement new component hover-card #12

Closed bluzky closed 3 weeks ago

bluzky commented 3 weeks ago

Summary by Sourcery

This pull request introduces a new HoverCard component with subcomponents for creating interactive hover cards. Additionally, it enhances the Avatar component by adding a shrink-0 class for improved layout handling.

sourcery-ai[bot] commented 3 weeks ago

Reviewer's Guide by Sourcery

This pull request introduces a new component, HoverCard, and makes minor adjustments to the existing Avatar component. The HoverCard component includes three sub-components: hover_card, hover_card_trigger, and hover_card_content, each with specific attributes and rendering logic. The Avatar component has been updated to include a new CSS class for better layout control.

File-Level Changes

Files Changes
lib/salad_ui/hover_card.ex Introduced a new HoverCard component with three sub-components: hover_card, hover_card_trigger, and hover_card_content, along with private helper functions for alignment and styling.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://sourcery.ai/dashboard): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.