Sfoglia il codice sorgente

Tighten Google Docs dashboard widget height.

Reduce docs dashboard panel and preview heights so medium widget content fills the card better with less empty vertical space.

Made-with: Cursor
huzaifahayat12 3 mesi fa
parent
commit
142c693ae2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      google_apps/Widgets/WidgetTemplates.swift

+ 2 - 2
google_apps/Widgets/WidgetTemplates.swift

@@ -643,7 +643,7 @@ extension WidgetLayoutMode {
         case .forms(.dashboard):
             return CGSize(width: 440, height: 300)
         case .docs(.dashboard):
-            return CGSize(width: 440, height: 300)
+            return CGSize(width: 440, height: 220)
         case .sheets(.dashboard):
             return CGSize(width: 440, height: 300)
         case .slides(.dashboard):
@@ -714,7 +714,7 @@ extension WidgetLayoutMode {
         case .forms(.dashboard):
             return CGSize(width: 380, height: 280)
         case .docs(.dashboard):
-            return CGSize(width: 380, height: 280)
+            return CGSize(width: 380, height: 206)
         case .sheets(.dashboard):
             return CGSize(width: 380, height: 280)
         case .slides(.dashboard):