Build 77: smaller sidebar avatar so the npub fits one line
Shrink the sidebar identity chip's avatar (36→28px) and handle (12→11px) to free horizontal space, so the npub/handle stays on a single line.
This commit is contained in:
@@ -628,13 +628,13 @@ impl GoblinWalletView {
|
||||
w::card(ui, |ui| {
|
||||
ui.set_min_width(ui.available_width());
|
||||
ui.horizontal(|ui| {
|
||||
w::avatar_any(ui, &handle, &npub_hex, 36.0, hue, tex.as_ref());
|
||||
w::avatar_any(ui, &handle, &npub_hex, 28.0, hue, tex.as_ref());
|
||||
ui.add_space(10.0);
|
||||
ui.vertical(|ui| {
|
||||
// Smaller so the npub/handle stays on one line.
|
||||
ui.label(
|
||||
RichText::new(&handle)
|
||||
.font(FontId::new(12.0, fonts::semibold()))
|
||||
.font(FontId::new(11.0, fonts::semibold()))
|
||||
.color(t.surface_text),
|
||||
);
|
||||
ui.label(
|
||||
|
||||
Reference in New Issue
Block a user