mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-12-01 12:33:59 +01:00
bug: fix negative dimension
This commit is contained in:
1 parent
8221235726
commit
b204a6c54a
1 file changed
+1
-1
@@ -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