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 {
193 .cursor_pointer()193 .cursor_pointer()
194 .tip("Connection stats")194 .tip("Connection stats")
195 .on_click(move |_, window, cx| stats(window, cx))195 .on_click(move |_, window, cx| stats(window, cx))
196- .child(div().w(px(size::ROW)).h(px(size::ICON)).child(196+ .child(
197- super::parts::spark(197+ div()
198- pings,198+ .w(px(size::ROW))
199- super::voice_stats::SAMPLE_HISTORY,199+ .h(px(size::ICON))
200- bar.quality.map_or(t.faint(), |quality| quality.color(t)),200+ .child(super::parts::spark(
201- ),201+ pings,
202- ))202+ super::voice_stats::SAMPLE_HISTORY,
203+ bar.quality.map_or(t.faint(), |quality| quality.color(t)),
204+ )),
205+ )
203 .child(206 .child(
204 words(ping, Text::Label, ping_ink, t)207 words(ping, Text::Label, ping_ink, t)
205 .min_w(px(size::CHIP * 2.))208 .min_w(px(size::CHIP * 2.))
crates/client/src/gui/sidebar.rsmodified+5 -6
@@ -68,8 +68,9 @@ impl Yumush {
68 .flex()68 .flex()
69 .flex_col()69 .flex_col()
70 .items_center()70 .items_center()
71- .justify_end()71+ .justify_between()
72 .py(px(space::MD))72 .py(px(space::MD))
73+ .child(self.collapse_button(entity, palette))
73 .child(74 .child(
74 div()75 div()
75 .flex()76 .flex()
@@ -81,8 +82,7 @@ impl Yumush {
81 self.user82 self.user
82 .as_ref()83 .as_ref()
83 .map(|user| self.account_trigger(entity, user, false, palette)),84 .map(|user| self.account_trigger(entity, user, false, palette)),
84- )85+ ),
85- .child(self.collapse_button(entity, palette)),
86 )86 )
87 }87 }
88 88
@@ -127,6 +127,7 @@ impl Yumush {
127 .child("yumu")127 .child("yumu")
128 .child(wordmark_tail(self.wordmark_flips)),128 .child(wordmark_tail(self.wordmark_flips)),
129 )129 )
130+ .child(self.collapse_button(entity, palette))
130 .child(icon_button(131 .child(icon_button(
131 "new_community_button",132 "new_community_button",
132 palette,133 palette,
@@ -969,9 +970,7 @@ impl Yumush {
969 .when(ghost, |button| {970 .when(ghost, |button| {
970 button.text_color(palette.tokens.hue(super::style::my_hue()))971 button.text_color(palette.tokens.hue(super::style::my_hue()))
971 })972 })
972- }))973+ })),
973- .child(div().flex_1())
974- .child(self.collapse_button(entity, palette)),
975 )974 )
976 }975 }
977 976