← 输入框|github.com|刷新
Skip to content

web: add a card height variant to no-items cards with buttons - #39

Merged
yekta merged 1 commit into
masterfrom
chore/find-no-match-cards
Oct 17, 2026
Merged

yekta merged 1 commit into
masterfrom
chore/find-no-match-cards

Conversation

@yekta

@yekta yekta commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

NoItemsCard now has a cardHeight variant built with cva, the same way Button handles its variants. Cards that hold a button now share the same taller height.

  • md (min-h-38) is the default, so cards that don't pass cardHeight look the same as before.
  • lg (min-h-44) is for cards that contain a button. These cards now use it:
    • "No projects match the current search" (project-card-list.tsx)
    • "No services match the current search" (service-card-list.tsx)
    • "There is no active deployment" (deployments.tsx)
    • The no-logs card in the log viewer. It used to set its own min-h-42 through className and now uses lg instead.
  • className is still passed through and merged with the variant classes.

No-items cards now have a cardHeight variant, the same way buttons have variants. md (min-h-38) is the default and lg (min-h-44) is for cards that hold a button. The cards that use lg are the project and service no-search-match cards, the no active deployment card, and the no-logs card. The no-logs card used to set its own min-h-42.
@yekta
yekta merged commit 3ecac1f into master Oct 17, 2026
1 check passed
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.

1 participant