mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 20:23:25 +01:00
[AltWidget] Improves layout on smaller devices
Shrinking app icon to 40% width allows whitespace between the app name and the "Expires in" text on smaller devices, such as the iPhone 12/13 mini.
This commit is contained in:
@@ -27,7 +27,7 @@ struct WidgetView : View
|
|||||||
Group {
|
Group {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
VStack(alignment: .leading, spacing: 5) {
|
VStack(alignment: .leading, spacing: 5) {
|
||||||
let imageHeight = geometry.size.height * 0.45
|
let imageHeight = geometry.size.height * 0.4
|
||||||
|
|
||||||
Image(uiImage: app.icon ?? UIImage())
|
Image(uiImage: app.icon ?? UIImage())
|
||||||
.resizable()
|
.resizable()
|
||||||
|
|||||||
Reference in New Issue
Block a user