Reduce minimum width for chat event view
Some users have reported that there is unwanted horizontal padding on small messages. This was due to the minimum chat event view width. To address this feedback, the minimum width has been reduced to a very small amount, so that small messages with no other content can more tightly hug the inner content. Closes: https://github.com/damus-io/damus/issues/2312 Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
committed by
William Casarin
parent
abb818bbd4
commit
9885ff1912
@@ -390,7 +390,12 @@ struct NoteContentView_Previews: PreviewProvider {
|
||||
NoteContentView(damus_state: state, event: test_note, blur_images: false, size: .normal, options: [])
|
||||
}
|
||||
.previewDisplayName("Short note")
|
||||
|
||||
|
||||
VStack {
|
||||
NoteContentView(damus_state: state, event: test_super_short_note, blur_images: true, size: .normal, options: [])
|
||||
}
|
||||
.previewDisplayName("Super short note")
|
||||
|
||||
VStack {
|
||||
NoteContentView(damus_state: state, event: test_encoded_note_with_image!, blur_images: false, size: .normal, options: [])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user