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 lineHeight problems on native with new Text #3175

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented Mar 11, 2024

On native, setting the lineHeight to the fontSize adds a bit of extra height that we don't want, preventing us from properly aligning text in some cases. Instead, let's only apply that on web (during testing, it does seem to help on web to do this). On native, if the line height is undefined or zero, don't change it.

Before

Screenshot 2024-03-11 at 12 41 35 PM

After

Screenshot 2024-03-11 at 12 41 56 PM

@haileyok haileyok merged commit 3a6e58b into main Mar 11, 2024
4 checks passed
@haileyok haileyok deleted the hailey/text-line-height branch March 11, 2024 19:54
estrattonbailey added a commit that referenced this pull request Mar 12, 2024
* origin/main:
  Unwrap Menu.Trigger on web (#3182)
  move imports to top
  move button inline if viewport is small (vertically)
  Update po files
  Fix onboarding `FeedCard` text overflow (#3176)
  Fix `lineHeight` problems on native with new `Text` (#3175)
  only include `localhost:19006` as intent filter on android (#3167)
  await `share` before closing menu (#3173)
estrattonbailey added a commit that referenced this pull request Mar 12, 2024
…on-2

* origin/main:
  Small fixes (#3184)
  Combine actions, convert to new menu (#3174)
  Convert profile edit avatar/banner dropdown menus to new menu (#3177)
  Save image to user media library when taken from camera during composing (#3180)
  Dedupe navigation events (push, navigate, pop, etc) (#3179)
  Unwrap Menu.Trigger on web (#3182)
  move imports to top
  move button inline if viewport is small (vertically)
  Update po files
  Fix onboarding `FeedCard` text overflow (#3176)
  Fix `lineHeight` problems on native with new `Text` (#3175)
  only include `localhost:19006` as intent filter on android (#3167)
  await `share` before closing menu (#3173)
  Fix button widths in the Settings on web (#3165)
  Fix font styles on web (#3162)
  Fix `aria-label` on the Share button (#3159)
  Fix RSS URLs treated as internal (#3156)
  Poll Statsig for config changes (#3158)
  Fix missing check for invite code (#3157)
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.

2 participants