forge
Explore
Log in

Don't you dare go Hollow

Login groups saved accounts under a caption with space before the form

Browse files at this commit

995d85eed8deff5e41cf4c27f90450e37c137657Ahmet Kaan GümüşParent: b102c8b
  • style
    • login groups saved accounts under a caption with space before the form
    • account find field aligned with rows
Show full message
💄 style: login groups saved accounts under a caption with space before the form; account find field aligned with rows
crates/client/lang/en/auth.txtmodified+1 -0
@@ -8,3 +8,4 @@ maintenance = Maintenance
8 accept_any_cert = Accept any certificate8 accept_any_cert = Accept any certificate
9 forget = Forget9 forget = Forget
10 find_account = Find account…10 find_account = Find account…
11+saved = Saved accounts
crates/client/lang/tr/auth.txtmodified+1 -0
@@ -8,3 +8,4 @@ maintenance = Bakım
8 accept_any_cert = Her sertifikayı kabul et8 accept_any_cert = Her sertifikayı kabul et
9 forget = Unut9 forget = Unut
10 find_account = Hesap bul…10 find_account = Hesap bul…
11+saved = Kayıtlı hesaplar
crates/client/src/gui/account_list.rsmodified+1 -1
@@ -39,7 +39,7 @@ pub(super) fn account_list(
39 .flex()39 .flex()
40 .flex_col()40 .flex_col()
41 .gap(px(space::XXS))41 .gap(px(space::XXS))
42- .children(filtered.then(|| input_box(&yumush.account_filter, palette)))42+ .children(filtered.then(|| input_box(&yumush.account_filter, palette).px(px(space::SM))))
43 .child(43 .child(
44 div()44 div()
45 .id("account_rows")45 .id("account_rows")
crates/client/src/gui/auth.rsmodified+9 -2
@@ -288,8 +288,15 @@ impl Yumush {
288 }288 }
289 289
290 fn saved_accounts(&self, entity: &Entity<Self>, palette: Palette, cx: &App) -> Option<Div> {290 fn saved_accounts(&self, entity: &Entity<Self>, palette: Palette, cx: &App) -> Option<Div> {
291- (!self.accounts.list.is_empty())291+ (!self.accounts.list.is_empty()).then(|| {
292- .then(|| account_list(self, entity, false, None, palette, cx))292+ div()
293+ .flex()
294+ .flex_col()
295+ .gap(px(space::XS))
296+ .pb(px(space::LG))
297+ .child(super::parts::caption_head(w().auth.saved, palette.tokens))
298+ .child(account_list(self, entity, false, None, palette, cx))
299+ })
293 }300 }
294 }301 }
295 302