From 0b3923af52a93af5182c4ffe1c6a074a6e7310b4 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 19 Jan 2024 12:20:18 +0100 Subject: [PATCH] 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 Co-Authored-By: Piotr --- crates/collab_ui/src/chat_panel.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/collab_ui/src/chat_panel.rs b/crates/collab_ui/src/chat_panel.rs index 44b0669c307bcb491e53e0f07ab48ae461d7f6b3..ba8c71fb1e969c539b35aa8cec23eaa0df12f148 100644 --- a/crates/collab_ui/src/chat_panel.rs +++ b/crates/collab_ui/src/chat_panel.rs @@ -559,6 +559,7 @@ impl Render for ChatPanel { } else { this.child( div() + .full() .p_4() .child( Label::new("Select a channel to chat in.")