From 42ca267d83d8bd79f44a29423130522738e439f6 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 22 Sep 2022 20:31:38 +0200 Subject: [PATCH] Fix install page - Use normal labels instead of hiding them - Fix position of the eye button (this is still very hacky) - Define width on the box and not on the text fields This really needs to be ported to vue Signed-off-by: Carl Schwan Signed-off-by: nextcloud-command --- core/css/guest.css | 32 ++++++++++++++++++++++++++++---- core/templates/installation.php | 27 ++++++++++----------------- 2 files changed, 38 insertions(+), 21 deletions(-) diff --git a/core/css/guest.css b/core/css/guest.css index b120d46a5c8f1..3883d66000e0d 100644 --- a/core/css/guest.css +++ b/core/css/guest.css @@ -105,12 +105,36 @@ form { margin: auto; padding: 0; } +form.install-form { + max-width: 300px; +} + +form.install-form fieldset, +form.install-form fieldset input { + width: 100%; +} +form.install-form .strengthify-wrapper { + bottom: 17px; + width: calc(100% - 8px); + left: 4px; + top: unset; +} + +form.install-form #show { + top: 18px; +} + form #sqliteInformation { - margin-top: 0px; + margin-top: 0.5rem; margin-bottom: 20px; } -form #adminaccount { +form #adminaccount, form #use_other_db { margin-bottom: 15px; + text-align: left; +} +form #adminaccount > legend, +form #adminlogin { + margin-bottom: 1rem; } form #advancedHeader { width: 100%; @@ -335,7 +359,7 @@ input[type='checkbox'].checkbox--white:checked + label:before { display: inline-block; position: relative; top: -20px; - width: 286px; + width: 250px; border-radius: 0 0 3px 3px; overflow: hidden; height: 3px; @@ -350,7 +374,7 @@ input[type='checkbox'].checkbox--white:checked + label:before { #show, #dbpassword-toggle { position: absolute; right: 2px; - top: 4px; + top: -3px; display: flex; justify-content: center; width: 44px; diff --git a/core/templates/installation.php b/core/templates/installation.php index 45d9cfc925288..2affefebead5b 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -5,7 +5,7 @@ '> '> '> -
+ 0): ?>
@@ -34,19 +34,17 @@
t('Create an admin account')); ?> -

+

+ -

+ - @@ -102,26 +100,23 @@

- +

+ -

- + @@ -131,16 +126,14 @@

- +

@@ -153,12 +146,12 @@ 0): ?> -
+
t('Performance warning'));?>

t('You chose SQLite as database.'));?>

t('SQLite should only be used for minimal and development instances. For production we recommend a different database backend.'));?>

t('If you use clients for file syncing, the use of SQLite is highly discouraged.')); ?>

-
+