Account · Profile and access: a key's ends stay whole, keys drawn literally
A key's name gives way before its ends, which keep their width. The ends and a new secret draw through typography::literal. Tests show this device listing first and the name field emptying after Create.
This commit is contained in:
1 parent
31f5f91507
commit
90afc6381c
4 files changed
+36
-10
No files matched your search
+9
-9
@@ -12,7 +12,7 @@ use crate::{
|
||||
forms::{Enter, Input},
|
||||
primitives::Severity,
|
||||
theme::{ActiveTheme, ControlSize, TextSize},
|
||||
typography::Ellipsis,
|
||||
typography::{Ellipsis, literal},
|
||||
};
|
||||
|
||||
type OnKey = Rc<dyn Fn(&SharedString, &mut Window, &mut App)>;
|
||||
@@ -114,7 +114,7 @@ impl RenderOnce for ApiKeyManager {
|
||||
.gap_2()
|
||||
.child(
|
||||
div().flex().child(
|
||||
div()
|
||||
literal(div())
|
||||
.flex_1()
|
||||
.min_w_0()
|
||||
.font_family(mono.clone())
|
||||
@@ -154,19 +154,19 @@ impl RenderOnce for ApiKeyManager {
|
||||
div()
|
||||
.flex()
|
||||
.gap_2()
|
||||
.child(
|
||||
div()
|
||||
.flex_none()
|
||||
.font_weight(FontWeight::MEDIUM)
|
||||
.child(each.name.clone()),
|
||||
)
|
||||
.child(
|
||||
div()
|
||||
.flex_1()
|
||||
.min_w_0()
|
||||
.font_weight(FontWeight::MEDIUM)
|
||||
.child(Ellipsis::new(each.name.clone())),
|
||||
)
|
||||
.child(
|
||||
literal(div())
|
||||
.flex_none()
|
||||
.font_family(mono.clone())
|
||||
.text_color(theme.colors.fg_muted)
|
||||
.child(Ellipsis::new(each.hint.clone())),
|
||||
.child(each.hint.clone()),
|
||||
),
|
||||
)
|
||||
.child(
|
||||
|
||||
Reference in new issue
Block a user