Fix regressions introduced by flicker fix (#9162)

This pull request fixes a couple of easy regressions we discovered right
after using #9012 on nightly:

- Popover buttons for a chat message were being occluded by the message
itself.
- Scrolling was not working on the `List` element.

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2024-03-11 12:11:51 +01:00 committed by GitHub
parent 2f6c78b0c0
commit 298314d526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 25 deletions

View file

@ -466,10 +466,6 @@ impl ChatPanel {
.relative()
.group("")
.when(!is_continuation_from_previous, |this| this.pt_2())
.child(
self.render_popover_buttons(&cx, message_id, can_delete_message)
.neg_mt_2p5(),
)
.child(
div()
.group("")
@ -583,6 +579,10 @@ impl ChatPanel {
)
},
)
.child(
self.render_popover_buttons(&cx, message_id, can_delete_message)
.neg_mt_2p5(),
)
}
fn has_open_menu(&self, message_id: Option<u64>) -> bool {