-
Notifications
You must be signed in to change notification settings - Fork 338
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 Timeline component #4713
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,9 +56,8 @@ struct IconComponentView: View { | |
shadow: style.iconBackgroundShadow, | ||
background: style.iconBackgroundStyle, | ||
uiConfigProvider: self.viewModel.uiConfigProvider) | ||
.padding(style.padding) | ||
.padding(style.margin) | ||
.size(style.size) | ||
.clipped() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't see a reason why the icon needs to be clipped. This is likely to clip the shadow if present, which is not intended. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copy/paste from image 🫠 |
||
} | ||
} | ||
|
||
|
@@ -153,7 +152,7 @@ struct IconComponentView_Previews: PreviewProvider { | |
), | ||
size: .init(width: .fixed(150), height: .fixed(150)), | ||
padding: .init(top: 20, bottom: 20, leading: 20, trailing: 20), | ||
margin: .zero, | ||
margin: .init(top: 20, bottom: 20, leading: 20, trailing: 20), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-adding the margin so the snapshot stays the same |
||
color: PaywallComponent.ColorScheme( | ||
light: .hex("#ff0000") | ||
), | ||
|
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.
Bug fix: we're already applying the padding a few lines above. This is the margin but we were using the padding property.