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: fix template 5 title alignment #1585

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

NachoSoto
Copy link
Contributor

We didn't notice in our tests because of the large string, but it was vertically centered instead of left aligned like it should be (that's how it's designed in the dashboard and iOS).

We didn't notice in our tests because of the large string, but it was vertically centered instead of left aligned like it should be (that's how it's designed in the dashboard and iOS).
@NachoSoto NachoSoto requested a review from a team January 29, 2024 19:02
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e5b204f) 83.71% compared to head (7c140ee) 83.71%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1585   +/-   ##
=======================================
  Coverage   83.71%   83.71%           
=======================================
  Files         218      218           
  Lines        7260     7260           
  Branches     1011     1011           
=======================================
  Hits         6078     6078           
  Misses        788      788           
  Partials      394      394           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Thanks for fixing this!

@@ -242,6 +242,8 @@ private fun Title(
textAlign = TextAlign.Left,
text = state.selectedLocalization.title,
color = state.templateConfiguration.getCurrentColors().text1,
modifier = Modifier
.fillMaxWidth(),
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it should but just to check, this look good on landscape?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah 👍🏻

@NachoSoto NachoSoto merged commit fce561f into main Jan 30, 2024
9 checks passed
@NachoSoto NachoSoto deleted the paywalls-template-5-title-alignment branch January 30, 2024 14:00
vegaro pushed a commit that referenced this pull request Feb 5, 2024
**This is an automatic release.**

### RevenueCatUI
* `Paywalls`: fix template 5 title alignment (#1585) via NachoSoto
(@NachoSoto)
* `Paywalls`: replace `TextAlign.Left` with `TextAlign.Start` to better
support RTL (#1584) via NachoSoto (@NachoSoto)
* Paywall views: Support updating options state after initial layout
(#1582) via Toni Rico (@tonidero)
* `Paywalls`: improve `PaywallData.configForLocale()` disambiguation
(#1579) via NachoSoto (@NachoSoto)
### Dependency Updates
* Bump fastlane-plugin-revenuecat_internal from `e6ba247` to `9c82c7a`
(#1583) via dependabot[bot] (@dependabot[bot])
### Other Changes
* `OfferingsFactory`: debug logs when creating `Offerings` (#1576) via
NachoSoto (@NachoSoto)
* `Paywalls`: log error when creating `PaywallState.Error` (#1574) via
NachoSoto (@NachoSoto)

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants