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