소스 검색

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 3 달 전
부모
커밋
ac2326431b
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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 {