浏览代码

Improved widget

Signed-off-by: marinofaggiana <marino.faggiana@nextcloud.com>
marinofaggiana 2 年之前
父节点
当前提交
d824927603
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      Widget/Nextcloud/NextcloudWidgetView.swift

+ 6 - 6
Widget/Nextcloud/NextcloudWidgetView.swift

@@ -27,19 +27,19 @@ import WidgetKit
 struct NextcloudWidgetView: View {
     var entry: NextcloudDataEntry
     var body: some View {
-        ZStack(alignment: .top) {
+        ZStack(alignment: .topLeading) {
             HStack(spacing: 5) {
                 Image("nextcloud")
                     .resizable()
                     .scaledToFit()
                     .frame(width: 10, height: 10)
                     .cornerRadius(3)
-                Text(NCBrandOptions.shared.brand + "k")
+                Text(NCBrandOptions.shared.brand + "")
                     .font(.system(size: 12))
                     .textCase(.uppercase)
             }
-            .padding(.leading, 5)
-            .padding(.bottom, 5)
+            .padding(.leading, 10)
+            .padding(.top, 5)
             VStack(alignment: .leading, spacing: 5) {
                 VStack(spacing: 5) {
                     ForEach(entry.nextcloudDatas, id: \.id) { element in
@@ -59,11 +59,11 @@ struct NextcloudWidgetView: View {
                                 }
                                 Spacer()
                             }
-                            .padding(5)
+                            .padding(.leading, 5)
                         }
                     }
                 }
-            }.padding(.top, 5)
+            }.padding(.top, 30)
                 .redacted(reason: entry.isPlaceholder ? .placeholder : [])
             Text(entry.footerText)
                     .font(.caption2)