Skip to content
Snippets Groups Projects
Commit 7d744435 authored by hannes's avatar hannes
Browse files

Files padding

parent 6fef3820
No related branches found
No related tags found
1 merge request!62Draft: Thesis hannes v2
......@@ -28,20 +28,21 @@ struct FilesPreviewer: View {
icon: AnyView(Image(systemName: "mail")),
description: NSLocalizedString("open mail in standard view", comment: ""),
onClick: {
//TODO: open standard mail
openOrigView(filesCategoryVM.mails[mailIndex])
}
)
],
preload: false
) //TODO: make this have the exact aspect ratio ?
.frame(width: 200)
.padding(.horizontal, 40)
.padding(.horizontal, 40).padding(.bottom, -25).padding(.top, -7)
}
})
}}}
}}.padding(.horizontal)}
}
func openOrigView(mail: eMail){
navigate(to: ReadMainView(mail: mail), when: $openEmail)
func openOrigView(_ mail: eMail){
//TODO : open the readView
//navigate(to: ReadMainView(mail: mail), when: $openEmail)
}
}
......
......@@ -21,7 +21,7 @@ struct FilesCategoryView : View{
var body: some View{
VStack{
TypePicker(selectedTypes: $filesModel.filteredFileTypes).padding(.horizontal, -20).padding(.bottom , 5)
FilesPreviewer(height: baseModel.size, filesCategoryVM: filesModel)
FilesPreviewer(height: baseModel.size, filesCategoryVM: filesModel).padding(.horizontal, -20)
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment