Fix unaligned close button in tab bar

Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
Thorsten Ball 2024-01-15 18:11:01 +01:00
parent 90f4c70a82
commit b9be2147e8
5 changed files with 9 additions and 7 deletions

View file

@ -1119,7 +1119,7 @@ impl Render for AssistantPanel {
)
.children(self.active_editor().map(|editor| {
h_flex()
.h(rems(Tab::HEIGHT_IN_REMS))
.h(rems(Tab::CONTAINER_HEIGHT_IN_REMS))
.flex_1()
.px_2()
.child(Label::new(editor.read(cx).title(cx)).into_element())