Commit 7070fa7e authored by hannes's avatar hannes
Browse files

less lost space?

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