Limit list item lines
This commit is contained in:
parent
964c644922
commit
1e5fed5bbc
@ -56,6 +56,7 @@ struct FileListView: View {
|
|||||||
ForEach(filteredFiles) { file in
|
ForEach(filteredFiles) { file in
|
||||||
SelectableListItem(selected: selectedFile == file) {
|
SelectableListItem(selected: selectedFile == file) {
|
||||||
Text(file.id)
|
Text(file.id)
|
||||||
|
.lineLimit(1)
|
||||||
}
|
}
|
||||||
.id(file.id)
|
.id(file.id)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
|
@ -32,6 +32,7 @@ private struct LocalizedPageListItem: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Text(page.title)
|
Text(page.title)
|
||||||
|
.lineLimit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ private struct LocalizedPostListItem: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
HStack {
|
HStack {
|
||||||
Text(post.title ?? id)
|
Text(post.title ?? id)
|
||||||
|
.lineLimit(1)
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,5 +60,6 @@ private struct TagListItem: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Text(tag.title)
|
Text(tag.title)
|
||||||
|
.lineLimit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user