chore: correct padding

This commit is contained in:
dscyrescotti
2024-07-03 18:54:15 +07:00
parent 687fd9be55
commit 8fa17a358e

View File

@@ -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 {