From d6dc6acf046f2378c594b225cf61904210c8492e Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 5 Dec 2024 13:14:46 +0200 Subject: [PATCH] use markup in tooltip --- src/app/browser/window/tab/item/identity/gemini.rs | 6 +++--- .../window/tab/item/identity/gemini/widget/form/list.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/tab/item/identity/gemini.rs b/src/app/browser/window/tab/item/identity/gemini.rs index 1c42f5bd..d2fc1d38 100644 --- a/src/app/browser/window/tab/item/identity/gemini.rs +++ b/src/app/browser/window/tab/item/identity/gemini.rs @@ -79,12 +79,12 @@ impl Gemini { .iter() .filter(|this| this.profile_identity_gemini_id == identity.id) { - auth_scope.push(auth.scope.clone()) + auth_scope.push(format!("{}", auth.scope.clone())) } // Build tooltip let mut tooltip = format!( - "Valid:\n{}\n{}", + "valid\n{} - {}", certificate .not_valid_before() .unwrap() @@ -98,7 +98,7 @@ impl Gemini { ); if auth_scope.len() > 0 { - tooltip.push_str(&format!("\n\nScope:\n{}", auth_scope.join("\n"))); + tooltip.push_str(&format!("\n\nscope\n{}", auth_scope.join("\n"))); } // Append record option diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs index 225b0218..9c5322c0 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs @@ -66,7 +66,7 @@ impl List { let subtitle = child.last_child().unwrap().downcast::