Skip to content

Card shadows no longer cut off below the card row - #187

Open
coasting24 wants to merge 1 commit into
damianeickhoff:mainfrom
coasting24:card-shadow
Open

coasting24 wants to merge 1 commit into
damianeickhoff:mainfrom
coasting24:card-shadow

Conversation

@coasting24

@coasting24 coasting24 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

The card row is a scroll container (overflow-x: auto), which clips both axes, so its 6px padding cut the cards' 0 12px 32px shadow off in a hard line just below the cards. The strip now has room above (26px, also covers the 3px hover lift) and below (48px). The extra is taken off its bottom offset, so the cards sit exactly where they were. The strip itself has pointer-events: none and the cards auto, so nothing under the extra room loses its clicks. Phone layout unchanged.

Not included: the left side. The first card's left shadow is still cut at the title line; giving the strip room there lets cards that scroll past show in that margin, which needs a different edge treatment. Happy to look at that separately if you want it.

Why?

Hard edge under every card, most visible on light photos.

Checklist

  • dist/hacasa-nova.js not committed (it is rebuilt with each release)
  • npm run i18n:check passes
  • New user-visible text goes through t() with an English translation (none added)
  • Tested in the dev page (dev/index.html), desktop and phone width
  • Screenshots added for visual changes (before / after, bottom edge of a card)

Before (shadow ends in a hard line):
shadow-before-zoom

After:
shadow-after-zoom

🤖 Generated with Claude Code

The strip is a scroll container (overflow-x: auto), which clips both axes, and
its 6px padding cut the cards' 0 12px 32px shadow off in a hard line just
below the cards. It now has room above (26px, for the 3px hover lift too) and
below (48px); the extra is taken off its bottom offset, so the cards sit
exactly where they were. The strip lets clicks through, only the cards catch
them, so nothing under the extra room loses its clicks. Phone layout unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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