From b0a93dcf91b139a5a4e8f03fcbdaea2feabbc7e1 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Wed, 4 Oct 2023 11:20:44 +0200 Subject: [PATCH] feat: add Keyoxide profile QR button --- static-src/styles.scss | 6 +----- static-src/styles/forms.scss | 4 ++++ views/profile.pug | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/static-src/styles.scss b/static-src/styles.scss index 0e6b3bd..281def2 100644 --- a/static-src/styles.scss +++ b/static-src/styles.scss @@ -69,6 +69,7 @@ more information on this, and how to apply and follow the GNU AGPL, see div { - margin: 16px; - padding: 1em; -} - dialog form[method="Dialog"] { margin: 1em 0 0 !important; } diff --git a/static-src/styles/forms.scss b/static-src/styles/forms.scss index 5a44321..f916270 100644 --- a/static-src/styles/forms.scss +++ b/static-src/styles/forms.scss @@ -110,6 +110,10 @@ a.button { } } +button { + margin-right: 8px; +} + button.inline { min-height: auto; margin: 0; diff --git a/views/profile.pug b/views/profile.pug index c36d0d6..35777cb 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -131,6 +131,8 @@ block content unless index == data.primaryPersonaIndex +generatePersona(persona, false) h2 Profile + if data.verifiers.length > 0 + button(onClick=`showQR('${data.verifiers[0].url}', 'profile_verifier_url')` aria-label='Show profile ID QR') Keyoxide profile QR button(onClick=`showQR('${data.identifier}', 'profile_identifier')` aria-label='Show profile ID QR') Profile ID QR section