assistant2: Fix toolbar layout shift (#22770)
Note how, previously, switching between the thread view and the history caused a slightly reduction of the toolbar height. Super subtle stuff, but doesn't happen anymore. ### Before https://github.com/user-attachments/assets/712ff34e-a638-484d-8415-16011b10ae63 ### After https://github.com/user-attachments/assets/7ccff7a3-45a4-445c-9638-8445733e0ffc Release Notes: - N/A
This commit is contained in:
parent
f439ee0d55
commit
6af9e8ded8
1 changed files with 4 additions and 3 deletions
|
@ -311,10 +311,11 @@ impl AssistantPanel {
|
||||||
|
|
||||||
h_flex()
|
h_flex()
|
||||||
.id("assistant-toolbar")
|
.id("assistant-toolbar")
|
||||||
|
.px(DynamicSpacing::Base08.rems(cx))
|
||||||
|
.h(Tab::container_height(cx))
|
||||||
|
.flex_none()
|
||||||
.justify_between()
|
.justify_between()
|
||||||
.gap(DynamicSpacing::Base08.rems(cx))
|
.gap(DynamicSpacing::Base08.rems(cx))
|
||||||
.h(Tab::container_height(cx))
|
|
||||||
.px(DynamicSpacing::Base08.rems(cx))
|
|
||||||
.bg(cx.theme().colors().tab_bar_background)
|
.bg(cx.theme().colors().tab_bar_background)
|
||||||
.border_b_1()
|
.border_b_1()
|
||||||
.border_color(cx.theme().colors().border)
|
.border_color(cx.theme().colors().border)
|
||||||
|
@ -322,7 +323,7 @@ impl AssistantPanel {
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
.h_full()
|
.h_full()
|
||||||
.pl_1()
|
.pl_1p5()
|
||||||
.border_l_1()
|
.border_l_1()
|
||||||
.border_color(cx.theme().colors().border)
|
.border_color(cx.theme().colors().border)
|
||||||
.gap(DynamicSpacing::Base02.rems(cx))
|
.gap(DynamicSpacing::Base02.rems(cx))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue