mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove commented out code
This commit is contained in:
parent
96aae14671
commit
b795a8f59a
1 changed files with 27 additions and 27 deletions
|
|
@ -65,33 +65,33 @@ public struct LibraryItemCard: View {
|
|||
if item.hasLabels {
|
||||
labels
|
||||
}
|
||||
//
|
||||
// if let note = item.noteText {
|
||||
// HStack(alignment: .top, spacing: 10) {
|
||||
// avatarImage
|
||||
// .frame(width: 20, height: 20)
|
||||
// .padding(.vertical, 10)
|
||||
// .padding(.leading, 10)
|
||||
//
|
||||
// Text(note)
|
||||
// .font(Font.system(size: 12))
|
||||
// .multilineTextAlignment(.leading)
|
||||
// .lineLimit(noteLineLimit)
|
||||
// .frame(minHeight: 20)
|
||||
// .padding(.vertical, 10)
|
||||
// .padding(.trailing, 10)
|
||||
//
|
||||
// Spacer()
|
||||
// }
|
||||
// .frame(maxWidth: .infinity)
|
||||
// .frame(alignment: .topLeading)
|
||||
// .background(Color.noteContainer)
|
||||
// .cornerRadius(5)
|
||||
// .allowsHitTesting(noteLineLimit != nil)
|
||||
// .onTapGesture {
|
||||
// noteLineLimit = nil
|
||||
// }
|
||||
// }
|
||||
|
||||
if let note = item.noteText {
|
||||
HStack(alignment: .top, spacing: 10) {
|
||||
avatarImage
|
||||
.frame(width: 20, height: 20)
|
||||
.padding(.vertical, 10)
|
||||
.padding(.leading, 10)
|
||||
|
||||
Text(note)
|
||||
.font(Font.system(size: 12))
|
||||
.multilineTextAlignment(.leading)
|
||||
.lineLimit(noteLineLimit)
|
||||
.frame(minHeight: 20)
|
||||
.padding(.vertical, 10)
|
||||
.padding(.trailing, 10)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.frame(maxWidth: .infinity)
|
||||
.frame(alignment: .topLeading)
|
||||
.background(Color.noteContainer)
|
||||
.cornerRadius(5)
|
||||
.allowsHitTesting(noteLineLimit != nil)
|
||||
.onTapGesture {
|
||||
noteLineLimit = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(5)
|
||||
.padding(.top, 10)
|
||||
|
|
|
|||
Loading…
Reference in a new issue