forge
Explore
Log in

Don't you dare go Hollow

Collapse arrow in the header before +, expand arrow back at the top of the collapsed sidebar

Browse files at this commit

013209d73ecff1eecfcc96c4d8ead8f12d477b8dAhmet Kaan GümüşParent: b0f7dd2
  • style
    • collapse arrow in the header before +, expand arrow back at the top of the collapsed sidebar
Show full message
💄 style: collapse arrow in the header before +, expand arrow back at the top of the collapsed sidebar
crates/client/src/gui/call_bar.rsmodified+10 -7
@@ -193,13 +193,16 @@ pub fn view(bar: CallBar, actions: CallActions, t: Tokens) -> Div {
193193 .cursor_pointer()
194194 .tip("Connection stats")
195195 .on_click(move |_, window, cx| stats(window, cx))
196- .child(div().w(px(size::ROW)).h(px(size::ICON)).child(
197- super::parts::spark(
198- pings,
199- super::voice_stats::SAMPLE_HISTORY,
200- bar.quality.map_or(t.faint(), |quality| quality.color(t)),
201- ),
202- ))
196+ .child(
197+ div()
198+ .w(px(size::ROW))
199+ .h(px(size::ICON))
200+ .child(super::parts::spark(
201+ pings,
202+ super::voice_stats::SAMPLE_HISTORY,
203+ bar.quality.map_or(t.faint(), |quality| quality.color(t)),
204+ )),
205+ )
203206 .child(
204207 words(ping, Text::Label, ping_ink, t)
205208 .min_w(px(size::CHIP * 2.))
crates/client/src/gui/sidebar.rsmodified+5 -6
@@ -68,8 +68,9 @@ impl Yumush {
6868 .flex()
6969 .flex_col()
7070 .items_center()
71- .justify_end()
71+ .justify_between()
7272 .py(px(space::MD))
73+ .child(self.collapse_button(entity, palette))
7374 .child(
7475 div()
7576 .flex()
@@ -81,8 +82,7 @@ impl Yumush {
8182 self.user
8283 .as_ref()
8384 .map(|user| self.account_trigger(entity, user, false, palette)),
84- )
85- .child(self.collapse_button(entity, palette)),
85+ ),
8686 )
8787 }
8888
@@ -127,6 +127,7 @@ impl Yumush {
127127 .child("yumu")
128128 .child(wordmark_tail(self.wordmark_flips)),
129129 )
130+ .child(self.collapse_button(entity, palette))
130131 .child(icon_button(
131132 "new_community_button",
132133 palette,
@@ -969,9 +970,7 @@ impl Yumush {
969970 .when(ghost, |button| {
970971 button.text_color(palette.tokens.hue(super::style::my_hue()))
971972 })
972- }))
973- .child(div().flex_1())
974- .child(self.collapse_button(entity, palette)),
973+ })),
975974 )
976975 }
977976