瀏覽代碼

coding

Signed-off-by: marinofaggiana <marino.faggiana@nextcloud.com>
marinofaggiana 2 年之前
父節點
當前提交
4649efb532
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Widget/Nextcloud/NextcloudWidgetView.swift

+ 4 - 4
Widget/Nextcloud/NextcloudWidgetView.swift

@@ -72,7 +72,7 @@ struct NextcloudWidgetView: View {
 
                     HStack(spacing: 0) {
                         Button(action: {
-                                    //Place the functionality
+                            Link(destination: URL(string: "nextcloud://open-action?action=upload-asset")!) { }
                         }) {
                             Image("buttonAddImage")
                                 .resizable()
@@ -84,7 +84,7 @@ struct NextcloudWidgetView: View {
                                 .scaledToFit()
                         }.frame(width: geo.size.width/3, height: 50)
                         Button(action: {
-                                    //Place the functionality
+                            Link(destination: URL(string: "nextcloud://open-action?action=add-scan-document")!) { }
                         }) {
                             Image("buttonAddScan")
                                 .resizable()
@@ -96,7 +96,7 @@ struct NextcloudWidgetView: View {
                                 .scaledToFit()
                         }.frame(width: geo.size.width/3, height: 50)
                         Button(action: {
-                                    //Place the functionality
+                            Link(destination: URL(string: "nextcloud://open-action?action=create-voice-memo")!) { }
                         }) {
                             Image("microphone")
                                 .resizable()
@@ -122,7 +122,7 @@ struct NextcloudWidgetView: View {
                         .font(.caption2)
                         .padding(.trailing, 10.0)
                 }
-                .frame(maxWidth: geo.size.width, maxHeight: geo.size.height, alignment: .bottomTrailing)
+                .frame(maxWidth: geo.size.width, maxHeight: geo.size.height-3, alignment: .bottomTrailing)
             }
         }
     }