Skip to content

fix: align card footers to bottom on project and service cards#4345

Open
amit-y11 wants to merge 1 commit intoDokploy:canaryfrom
amit-y11:fix/project-service-card-alignment
Open

fix: align card footers to bottom on project and service cards#4345
amit-y11 wants to merge 1 commit intoDokploy:canaryfrom
amit-y11:fix/project-service-card-alignment

Conversation

@amit-y11
Copy link
Copy Markdown

@amit-y11 amit-y11 commented May 2, 2026

What is this PR about?

Fixes misaligned card footers ("Created at" timestamp and service count) on the Projects page and the Services page. When one card has a description and another doesn't, the footer text was not sticking to the bottom of the card, causing visual misalignment across cards in the same grid row.

Changes:

  • Projects page (show.tsx): Added flex flex-col to the Card and mt-auto to CardFooter so the footer is always pushed to the bottom.
  • Services page ([environmentId].tsx): Added h-full to the Link wrapper and Card so they stretch to fill the grid cell, allowing the existing mt-auto on CardFooter to work correctly.

Checklist

Screenshots (if applicable)

Before:
image
image

After:
image
image

Cards with descriptions appeared taller than those without, causing
the 'Created at' and service count text to be misaligned across cards
in the same row.

- Add flex-col and mt-auto to project cards so footer sticks to bottom
- Add h-full to service card Link and Card so they fill the grid cell
@amit-y11 amit-y11 requested a review from Siumauricio as a code owner May 2, 2026 17:21
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant