Limit list item lines

This commit is contained in:
Christoph Hagen 2025-02-17 13:39:03 +01:00
parent 964c644922
commit 1e5fed5bbc
4 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,7 @@ struct FileListView: View {
ForEach(filteredFiles) { file in
SelectableListItem(selected: selectedFile == file) {
Text(file.id)
.lineLimit(1)
}
.id(file.id)
.onTapGesture {

View File

@ -32,6 +32,7 @@ private struct LocalizedPageListItem: View {
var body: some View {
Text(page.title)
.lineLimit(1)
}
}

View File

@ -35,6 +35,7 @@ private struct LocalizedPostListItem: View {
var body: some View {
HStack {
Text(post.title ?? id)
.lineLimit(1)
Spacer()
}
}

View File

@ -60,5 +60,6 @@ private struct TagListItem: View {
var body: some View {
Text(tag.title)
.lineLimit(1)
}
}