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

[Paywalls] Add spacing between paragraphs and make text go full width so text align applies #1824

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

joshdholtz
Copy link
Member

Motivation

Fix spacing and text align consistency between Android, iOS, and web preview

Description

  • Adds vertical spacing inbetween each paragraph type elment that matches the line height
  • Make text in Markdown component full width so text align applies for single line configurations

@joshdholtz joshdholtz added the pr:fix A bug fix label Aug 26, 2024
@joshdholtz joshdholtz requested review from a team August 26, 2024 16:29
Copy link
Member

@JayShortway JayShortway left a comment

Choose a reason for hiding this comment

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

Love that this is such a small PR!

Comment on lines +76 to +79
val paragraphPadding = with(density) { style.lineHeight.toDp() }

Column(
verticalArrangement = Arrangement.spacedBy(paragraphPadding),
Copy link
Member

Choose a reason for hiding this comment

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

Inventive! 🧠

Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Looks good! Looks like we need to update snapshots. Instructions here:

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@joshdholtz joshdholtz changed the title Add spacing between paragraphs and make text go full width so text align applies [Paywalls] Add spacing between paragraphs and make text go full width so text align applies Aug 26, 2024
@joshdholtz joshdholtz merged commit f60813b into main Aug 26, 2024
8 checks passed
@joshdholtz joshdholtz deleted the fix-paywall-markdown-new-lines branch August 26, 2024 21:19
tonidero pushed a commit that referenced this pull request Aug 29, 2024
**This is an automatic release.**

### New Features
* Paywalls can use custom in-app purchase/restore code (#1777) via James
Borthwick (@jamesrb1)
### Bugfixes
* [Paywalls] Add spacing between paragraphs and make text go full width
so text align applies (#1824) via Josh Holtz (@joshdholtz)
### Dependency Updates
* Bump rexml from 3.3.4 to 3.3.6 (#1823) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane-plugin-revenuecat_internal from `4c4b8ce` to `85e1c83`
(#1812) via dependabot[bot] (@dependabot[bot])
* Adds Detekt rules for Compose. Updates detekt to 1.23.6. (#1822) via
JayShortway (@JayShortway)
### Other Changes
* Converts MagicWeather's Gradle files to Kotlin (#1821) via JayShortway
(@JayShortway)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants