Ver Fonte

Improve small default widget action button readability.

Render small actions-row widgets as single-column action tiles so labels stay fully visible instead of getting cramped in horizontal rows.

Made-with: Cursor
huzaifahayat12 há 3 meses atrás
pai
commit
ac2326431b
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      google_apps/Widgets/DesktopWidgetView.swift

+ 5 - 1
google_apps/Widgets/DesktopWidgetView.swift

@@ -84,7 +84,11 @@ struct DesktopWidgetView: View {
                             if showHeader {
                                 header
                             }
-                            rowActions(maxActions: 3)
+                            if size == .small {
+                                gridActions(columns: 1, maxActions: 3)
+                            } else {
+                                rowActions(maxActions: 3)
+                            }
 
                         case .actionsGrid(let columns):
                             if showHeader {