mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-03-23 09:51:18 +01:00
chore: correct padding
This commit is contained in:
@@ -19,9 +19,7 @@ struct PenDock: View {
|
||||
var height: CGFloat {
|
||||
horizontalSizeClass == .compact ? 90 : 30
|
||||
}
|
||||
var factor: CGFloat {
|
||||
horizontalSizeClass == .compact ? 0.9 : 0.9
|
||||
}
|
||||
var factor: CGFloat = 0.9
|
||||
|
||||
@State var refreshScrollId: UUID = UUID()
|
||||
@State var opensColorPicker: Bool = false
|
||||
@@ -156,7 +154,7 @@ struct PenDock: View {
|
||||
.resizable()
|
||||
}
|
||||
.frame(width: width * factor, height: height * factor)
|
||||
.padding(.horizontal, 5)
|
||||
.padding(.vertical, 5)
|
||||
.contentShape(.rect(cornerRadii: .init(topLeading: 10, bottomLeading: 10)))
|
||||
.onTapGesture {
|
||||
if tool.selectedPen !== pen {
|
||||
|
||||
Reference in New Issue
Block a user