From 59e8a19cc8e883a3b7315ccbb3406660b8839438 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 26 Apr 2017 14:14:04 +0200 Subject: [PATCH] Use individual verification popover dialogs instead of one Signed-off-by: Jan-Christoph Borchardt --- settings/css/settings.css | 14 ++++++++------ settings/templates/personal.php | 32 +++++++++++++++++++++----------- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 058126dd73c..d7fad7e946f 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -142,21 +142,23 @@ input#openid, input#webdav { width:20em; } /* verify accounts */ #personal-settings-container .verify { position: relative; - padding: 10px; + padding: 12px 6px; float: right; } #personal-settings-container .verify, #personal-settings-container .verify-action { cursor: pointer; } -#verification-dialog { - right: 0; - top: 0; +.verification-dialog { + display: none; + right: -9px; + top: 40px; + width: 200px; } -#verification-dialog p { +.verification-dialog p { padding: 10px; } -#verification-dialog .verificationCode { +.verification-dialog .verificationCode { font-family: monospace; white-space: nowrap; display: block; diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 46916478ea4..86979acdd2f 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -8,17 +8,6 @@ /** @var \OCP\Defaults $theme */ ?> - -
    getL10N()->t('Verify') . '"'); } ?>> +
@@ -189,6 +185,13 @@ print_unescaped('src="' . image_path('core', 'actions/verify.svg') . '" title="' . \OC::$server->getL10N()->t('Verify') . '" class="verify-action"'); } ?>> + > +