-
Notifications
You must be signed in to change notification settings - Fork 5
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
Max button align fix #36
Conversation
…> center by default [u] updated onChange iin assetlistview, old one was deprecated
.fixedSize() | ||
HStack { | ||
Button(Localized.Transfer.max, action: useMax) | ||
.buttonStyle(ColorButton.lightGray(paddingHorizontal: 16, paddingVertical: 8)) |
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.
Instead of 16,8 use Spacing.small
, Spacing.medium
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.
done
) | ||
} | ||
} | ||
.frame(maxWidth: Spacing.scene.button.maxWidth) | ||
.frame(maxWidth: .infinity) |
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.
need to make sure button is not larger than Spacing.scene.button.maxWidth
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.
yeah. Button still fixedSize and haven't changed. The frame changed for container view for iPad to fix ipad layout for that button
@@ -82,7 +82,7 @@ public struct AssetListItemView: View { | |||
public var body: some View { | |||
HStack { | |||
imageView | |||
HStack(alignment: .center) { | |||
HStack { |
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.
make sure this does not break other places
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.
Sure. By default HStack initialise with alignment: center. HStack(alignment: .center) - not necessary to write
[f] Improve Max button position #11 #11
[~] re-indent
[~] small refactor assetlistview, removed unused alignment: .center -> center by default
[u] updated onChange iin assetlistview, old one was deprecated
attached images: