Skip to content

Commit 0a66a09

Browse files
fix: align modal content to the leading corner
1 parent 82e3e23 commit 0a66a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ComponentsKit/Modal/SwiftUI/ModalContent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct ModalContent<VM: ModalVM, Header: View, Body: View, Footer: View>: View {
5959
.padding(.trailing, self.model.contentPaddings.trailing)
6060
.padding(.bottom, self.model.contentPaddings.bottom)
6161
}
62-
.frame(maxWidth: self.model.size.maxWidth)
62+
.frame(maxWidth: self.model.size.maxWidth, alignment: .leading)
6363
.background(self.model.backgroundColor.color(for: self.colorScheme))
6464
.background(Palette.Base.background.color(for: self.colorScheme))
6565
.clipShape(RoundedRectangle(

0 commit comments

Comments
 (0)