Fix layout shift when renaming a channel (#3946)

This PR fixes the layout shift that would occur in the channel list when
opening a rename editor for a channel.

Release Notes:

- Fixed layout shift when opening a rename editor for a channel.
This commit is contained in:
Marshall Bowers 2024-01-08 13:28:21 -05:00 committed by GitHub
parent 72de75dd45
commit 5e401e4550
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2398,12 +2398,7 @@ impl CollabPanel {
{
item.child(Label::new(pending_name))
} else {
item.child(
div()
.w_full()
.py_1() // todo!() @nate this is a px off at the default font size.
.child(self.channel_name_editor.clone()),
)
item.child(self.channel_name_editor.clone())
}
}
}