mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-01-11 20:00:24 +01:00
bug: fix negative dimension
This commit is contained in:
@@ -36,7 +36,7 @@ struct MemoPreview: View {
|
||||
.fill(.white)
|
||||
}
|
||||
}
|
||||
.frame(width: cellWidth, height: cellHeight)
|
||||
.frame(width: max(.zero, cellWidth), height: max(.zero, cellHeight))
|
||||
.background(.white)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 10))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user