Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix quote & list padding not being pressable #7694

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Feb 8, 2025

Quote & list embeds have a problem with their padding, in that the pressable link area is contained within the padding, meaning the padding area is not clickable. Easiest to understand by just looking at the before/after of the pressable area

Before After
Before After

Test plan

Ensure padding area is now clickable
Ensure styles for these elements is otherwise the same
Here's a thread of different embeds: https://bsky.app/profile/samuel.bsky.team/post/3lhmznav6j22d

@@ -267,7 +260,7 @@ export function MaybeFeedCard({view}: {view: AppBskyFeedDefs.GeneratorView}) {
<ContentHider modui={moderation?.ui('contentList')}>
<FeedSourceCard
feedUri={view.uri}
style={[pal.view, pal.border, styles.customFeedOuter]}
style={[a.border, t.atoms.border_contrast_medium, a.p_md, a.rounded_sm]}
Copy link
Member Author

@mozzius mozzius Feb 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the pal.view was needed, correct me if I'm wrong. We need to avoid unnecessary background colours for android perf

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea let's get rid of that. We used it for background colors in the past, but otherwise unnecessary.

Copy link

github-actions bot commented Feb 8, 2025

Old size New size Diff
7.02 MB 7.02 MB -354 B (-0.00%)

@arcalinea arcalinea temporarily deployed to samuel/fix-quote-padding - social-app PR #7694 February 11, 2025 19:19 — with Render Destroyed
@mozzius mozzius merged commit 521a764 into main Feb 12, 2025
7 checks passed
@mozzius mozzius deleted the samuel/fix-quote-padding branch February 12, 2025 19:18
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.

3 participants