Skip to content
Snippets Groups Projects
Commit 7070fa7e authored by hannes's avatar hannes
Browse files

less lost space?

parent 9c0dbd66
No related branches found
No related tags found
1 merge request!62Draft: Thesis hannes v2
...@@ -33,7 +33,7 @@ struct CategoryViewInner<Content:View>: View { ...@@ -33,7 +33,7 @@ struct CategoryViewInner<Content:View>: View {
onOpen : {category.isActive.toggle()} onOpen : {category.isActive.toggle()}
){ ){
content() content()
}.padding() }.padding(.horizontal, 15).padding(.top, 10)
} }
} }
...@@ -65,7 +65,7 @@ struct CategoryCardAlike<Content: View> : View { ...@@ -65,7 +65,7 @@ struct CategoryCardAlike<Content: View> : View {
var body: some View { var body: some View {
isResizable ? AnyView( isResizable ? AnyView(
DragResizableCard(height:size){inner.padding(.bottom,5)} DragResizableCard(shadowElevation: 15, height:size){inner.padding(.bottom,5)}
):AnyView( ):AnyView(
Card(){inner} Card(){inner}
) )
...@@ -74,8 +74,9 @@ struct CategoryCardAlike<Content: View> : View { ...@@ -74,8 +74,9 @@ struct CategoryCardAlike<Content: View> : View {
private var inner:some View{ private var inner:some View{
VStack{ VStack{
header.padding(.horizontal,10).padding(.top, 7) header.padding(.horizontal,17).padding(.vertical, 2)
Divider() Divider()
.frame(height:2)
content() content()
.frame(height:_size) .frame(height:_size)
//.clipped() //.clipped()
...@@ -87,8 +88,8 @@ struct CategoryCardAlike<Content: View> : View { ...@@ -87,8 +88,8 @@ struct CategoryCardAlike<Content: View> : View {
private var header:some View{ private var header:some View{
HStack{ HStack{
icon icon
.sizeTo(35) .sizeTo(30)
.padding(.trailing,8) .padding(.trailing,5)
Text(headline).font(.title2) Text(headline).font(.title2)
Spacer() Spacer()
Text(timestmp?.timeAgoText() ?? "") Text(timestmp?.timeAgoText() ?? "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment