-
Notifications
You must be signed in to change notification settings - Fork 54
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 V2] Extend paywall content below sticky footer #2125
base: main
Are you sure you want to change the base?
Conversation
dfad7b6
to
ddac42d
Compare
📸 Snapshot Test2 modified, 197 unchanged
🛸 Powered by Emerge Tools |
.verticalScroll(rememberScrollState()), | ||
) | ||
Box(modifier = modifier.background(background)) { | ||
var footerHeight by remember { mutableIntStateOf(0) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about using SubcomposeLayout for this instead but I was running into issues applying the padding and making it look right and this seemed easier for this use case. wdyt?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2125 +/- ##
==========================================
+ Coverage 80.73% 80.76% +0.02%
==========================================
Files 274 274
Lines 9228 9252 +24
Branches 1295 1297 +2
==========================================
+ Hits 7450 7472 +22
- Misses 1230 1234 +4
+ Partials 548 546 -2 ☔ View full report in Codecov by Sentry. |
The preview changes in emerge are due to the recomposition caused by the |
dc9b4d2
to
5cf6c41
Compare
We still want to do this but not for the open beta. Until then, leaving this as draft |
Description
Currently the sticky footer and main paywall content are part of a column, so there is no overlap between them. This makes it so the paywall content can extend below the sticky footer in case the sticky footer has a transparent background.
Ignore the extended badge but now the background extends below the footer: