Center "Open Chat" button in chat panel

The layout of the chat panel wasn't correct but this visual glitch
was being masked by caching, because it seems like Taffy was rendering
things slightly differently when laying out the chat panel as a detached
layout node. This wasn't an issue with caching, but rather an inconsistency
with how Taffy lays things out.

Co-Authored-By: Thorsten <thorsten@zed.dev>
Co-Authored-By: Piotr <piotr@zed.dev>
This commit is contained in:
Antonio Scandurra 2024-01-19 12:20:18 +01:00
parent 9446e573e9
commit 0b3923af52

View file

@ -559,6 +559,7 @@ impl Render for ChatPanel {
} else {
this.child(
div()
.full()
.p_4()
.child(
Label::new("Select a channel to chat in.")