enhancement: improve mobile responsiveness and touch targets#98
Open
KGFCH2 wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR (Closes #97) updates the landing page and user profile page styling to improve small-screen layout and add touch/press feedback for interactive elements.
Changes:
- Expanded mobile
@mediarules to adjust padding/spacing and element sizing for smaller viewports. - Updated mobile CTA/layout behavior (e.g., stacking CTA buttons on the landing page).
- Added
:activepress states to provide touch feedback on tiles/buttons/cards.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| apps/web/src/routes/u/[username]/+page.svelte | Adjusts mobile profile layout spacing/sizing and adds :active styling for touch feedback. |
| apps/web/src/routes/+page.svelte | Tunes mobile landing page layout/typography and adds :active styling for touch feedback. |
Comments suppressed due to low confidence (2)
apps/web/src/routes/u/[username]/+page.svelte:324
- For
.cta-link, thetransitionis only defined in the:activerule; when the user releases, the element returns to the base state with notransition, so the scale snaps back instead of animating. Put thetransition: transform ...on the base.cta-linkstyle (and keep:activeonly for thetransform) to make press/release feedback consistent.
.platform-tile:active, .cta-link:active {
transform: scale(0.98);
transition: transform 0.1s ease;
}
apps/web/src/routes/u/[username]/+page.svelte:323
.platform-tile:hoveralready usestransform: translateX(4px), and the new.platform-tile:activesetstransform: scale(0.98). On desktop, pressing a hovered tile will replace the translate with the scale (visible jump). Consider composing the transforms for the pressed+hovered case, or use a non-transform pressed style so hover motion isn’t interrupted.
.platform-tile:active, .cta-link:active {
transform: scale(0.98);
transition: transform 0.1s ease;
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| /* Active states for better touch feedback */ | ||
| .platform-tile:active, .cta-link:active { | ||
| transform: scale(0.98); | ||
| transition: transform 0.1s ease; |
Comment on lines
+341
to
+342
| transform: scale(0.98); | ||
| transition: transform 0.1s ease; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue: Closes #97
Summary: Enhance mobile responsiveness and touch interactivity.