Skip to content

fix(portfolio): restore mobile featured card actions - #81

Merged
devrodri-com merged 2 commits into
mainfrom
fix/devrodri-home-portfolio-mobile-actions
Aug 7, 2026
Merged

fix(portfolio): restore mobile featured card actions#81
devrodri-com merged 2 commits into
mainfrom
fix/devrodri-home-portfolio-mobile-actions

Conversation

@devrodri-com

Copy link
Copy Markdown
Owner

Summary

  • Restores the "Ver caso" / "View case study" CTA on the four Home featured Portfolio cards (LEM-BOX, ZENTRA, Esteban Firpo, Mutter Games) on / and /en.
  • Root cause: the featured card was a plain block with h-full overflow-hidden, while its content div independently declared h-full. With no flex container distributing height between the cover image and the content, height:100% on the content div resolved against the whole card height instead of the space left after the image, pushing the mt-auto CTA past the card's clipped bottom edge. The action was present in the DOM with normal computed styles (opacity:1, display:flex, correct color); it was purely clipped by an ancestor's overflow-hidden.
  • Confirmed on production (www.devrodri.com) at 390x844, 430x932, and 1440x1000 - reproduces on every breakpoint (not mobile-only) and on both / and /en. Not a PR fix(services): polish editorial widths and interactions #79/fix(nav): unify mobile navbar surface #80 regression: PortfolioSection.tsx has been unchanged since 2026-08-04, well before either PR. Traced to PR feat(portfolio): feature LEM-BOX and ZENTRA #36 (13ef7c7, 2026-07-27, "feat(portfolio): feature LEM-BOX and ZENTRA"), which introduced the two-level image+content layout without making the card a flex container.
  • Fix: makes the card a real flex flex-col, marks the image wrapper shrink-0, and lets the content div grow into the remaining space (flex-1 min-h-0) instead of re-claiming the full card height. No redesign, no Motion changes, no new dependencies. /portfolio uses a different component (PortfolioCard.tsx) and is untouched.

Test plan

  • npm run typecheck
  • npm run lint
  • npm run test:run - 31 suites / 331 tests passing (330 baseline + 1 new regression lock)
  • npm run build (client + server + prerender + verify:prerender + verify:http)
  • npm run ci
  • Verified in a local dev server at 390x844, 430x932, and 1440x1000 (Chromium) - all 4 CTAs render inside the card, not clipped
  • Verified /portfolio renders unaffected (different component)
  • Verified the fixed classes ship in the prerendered static HTML (no-JS path)
  • Needs your review on the physical iPhone once the Preview deployment is up

Note: WebKit verification via the iOS Simulator was blocked by a local Xcode configuration issue (xcode-select pointing at the wrong path), which needs a sudo command that could not be run here. Verification in this PR is Chromium-only; the fix is a plain CSS box-model correction (not an engine-specific quirk), and the physical iPhone + simulator screenshots that confirmed the original defect already show the same symptom this explains.

🤖 Generated with Claude Code

The Home featured Portfolio card was a plain block with h-full
overflow-hidden, while its content div independently declared h-full.
Without a flex container distributing height between the cover image
and the content, height:100% on the content div resolved against the
whole card instead of the space left after the image, pushing the
mt-auto CTA past the card's clipped bottom edge. The action was
present in the DOM with normal computed styles, just silently clipped
by the ancestor's overflow-hidden.

Makes the card a real flex column so the image and content share the
available height, and lets the content div grow into the remaining
space instead of re-claiming the full card height.
Locks the Home featured card's flex-column contract (card, cover
wrapper, and content div classes) so the mt-auto CTA cannot silently
regress back to being clipped by the card's overflow-hidden. Updates
the no-JS marker baseline hash and literal-source assertion to match
the corrected className.
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
minisitio-rodrigo Ready Ready Preview Aug 7, 2026 2:24am

Request Review

@devrodri-com
devrodri-com marked this pull request as ready for review August 7, 2026 06:06
@cursor

cursor Bot commented Aug 7, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@devrodri-com
devrodri-com merged commit b039326 into main Aug 7, 2026
7 checks 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