diff --git a/crates/client/lang/en/settings_page.txt b/crates/client/lang/en/settings_page.txt index c0b6940..f9d54e7 100644 --- a/crates/client/lang/en/settings_page.txt +++ b/crates/client/lang/en/settings_page.txt @@ -24,4 +24,4 @@ quality = Quality frame_rate = Frame rate codec = Codec share_audio = Share audio -back_esc = esc · back to chat +back_esc = Back (esc) diff --git a/crates/client/lang/tr/settings_page.txt b/crates/client/lang/tr/settings_page.txt index 6f61125..15ae64b 100644 --- a/crates/client/lang/tr/settings_page.txt +++ b/crates/client/lang/tr/settings_page.txt @@ -24,4 +24,4 @@ quality = Kalite frame_rate = Kare hızı codec = Kodek share_audio = Sesi paylaş -back_esc = esc · sohbete dön +back_esc = Geri (esc) diff --git a/crates/client/src/gui/settings_page.rs b/crates/client/src/gui/settings_page.rs index 0a95cb6..38b3d39 100644 --- a/crates/client/src/gui/settings_page.rs +++ b/crates/client/src/gui/settings_page.rs @@ -626,22 +626,42 @@ pub(super) fn frame( .child( div() .pb(px(space::XL)) - .text_size(text(text::TITLE)) - .text_color(palette.tokens.paper()) - .child(title), + .flex() + .items_center() + .gap(px(space::XS)) + .ml(px(-space::SM)) + .child( + clickable("page_back", palette, move |window, cx| { + back.update(cx, |yumush, cx| { + yumush.show_view(View::Chat, window, cx) + }); + }) + .tip(w().settings_page.back_esc) + .size(px(size::CONTROL_SM)) + .flex_shrink_0() + .flex() + .items_center() + .justify_center() + .rounded_full() + .text_color(palette.muted) + .child( + gpui_kit::component::Icon::new( + gpui_kit::assets::IconName::ArrowLeft, + ) + .size(px(size::ICON)), + ), + ) + .child( + div() + .min_w_0() + .text_size(text(text::TITLE)) + .text_color(palette.tokens.paper()) + .child(title), + ), ) .children(index) .child(div().flex_1()) - .children(footer) - .child( - clickable("page_back", palette, move |window, cx| { - back.update(cx, |yumush, cx| yumush.show_view(View::Chat, window, cx)); - }) - .pt(px(space::MD)) - .text_size(text(text::CAPTION)) - .text_color(palette.tokens.faint()) - .child(w().settings_page.back_esc), - ), + .children(footer), ) .child( div()