Skip to content

Commit 9a02c2b

Browse files
AlecRustjaapmarcus
andauthored
UI fixes (hestiacp#3461)
* Tidy recent password strength JS * Improve toolbar spacing on mobile * Remove "Error" from global error dialogs for now fixes hestiacp#3460 * Remove opacity from modal background (dark theme) * Update links in edit_server.php --------- Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent f9c5198 commit 9a02c2b

File tree

8 files changed

+23
-22
lines changed

8 files changed

+23
-22
lines changed

web/css/src/themes/dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ strong {
771771
========================================================================== */
772772

773773
.modal {
774-
background-color: rgb(45 45 45 / 95%);
774+
background-color: #2c2c2c;
775775
border-color: rgb(80 80 80 / 97%);
776776
box-shadow: inset 0 1px 3px rgb(0 0 0 / 25%), 0 8px 25px rgb(0 0 0 / 90%);
777777
}

web/css/src/themes/default.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,6 @@
602602
.toolbar-sorting {
603603
position: relative;
604604
font-size: 0.8rem;
605-
padding-bottom: 5px;
606605

607606
& form {
608607
flex-grow: 1;
@@ -616,10 +615,6 @@
616615
margin-left: 10px;
617616
}
618617
}
619-
620-
@media (--viewport-large) {
621-
padding-bottom: 0;
622-
}
623618
}
624619

625620
.toolbar-sorting-toggle {
@@ -829,8 +824,11 @@
829824
}
830825

831826
.toolbar-search {
827+
margin-top: 5px;
828+
832829
@media (--viewport-large) {
833830
margin-left: 12px;
831+
margin-top: 0;
834832
}
835833
}
836834

@@ -1731,7 +1729,7 @@
17311729
.modal {
17321730
border-radius: var(--border-radius-base);
17331731
box-shadow: inset 0 1px 3px rgb(0 0 0 / 25%), 0 8px 40px 0 rgb(0 0 0 / 35%);
1734-
background-color: rgb(255 255 255 / 90%);
1732+
background-color: #f0efef;
17351733
border: 1px solid rgb(255 255 255 / 98%);
17361734

17371735
@media (--viewport-small) {

web/css/themes/dark.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/css/themes/default.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/js/pages/add_mail_acc.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ applyRandomPassword = function (min_length = 16) {
9292
passwordInput.value = randomPassword;
9393
VE.helpers.recalculatePasswordStrength(passwordInput);
9494
const passwordOutput = document.querySelector('.js-password-output');
95-
if (passwordInput.getAttribute('type') === 'text' && passwordOutput) {
96-
passwordOutput.textContent = randomPassword;
97-
} else {
98-
passwordOutput.textContent = Array(randomPassword.length + 1).join('*');
95+
if (passwordOutput) {
96+
if (passwordInput.getAttribute('type') === 'text') {
97+
passwordOutput.textContent = randomPassword;
98+
} else {
99+
passwordOutput.textContent = Array(randomPassword.length + 1).join('*');
100+
}
99101
}
100102
generate_mail_credentials();
101103
}

web/js/pages/edit_mail_acc.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ applyRandomPassword = function (min_length = 16) {
8383
passwordInput.value = randomPassword;
8484
VE.helpers.recalculatePasswordStrength(passwordInput);
8585
const passwordOutput = document.querySelector('.js-password-output');
86-
if (passwordInput.getAttribute('type') === 'text' && passwordOutput) {
87-
passwordOutput.textContent = randomPassword;
88-
} else {
89-
passwordOutput.textContent = Array(randomPassword.length + 1).join('*');
86+
if (passwordOutput) {
87+
if (passwordInput.getAttribute('type') === 'text') {
88+
passwordOutput.textContent = randomPassword;
89+
} else {
90+
passwordOutput.textContent = Array(randomPassword.length + 1).join('*');
91+
}
9092
}
9193
generate_mail_credentials();
9294
}

web/templates/footer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class="button button-secondary button-circle button-floating button-floating-top
7575
<script>
7676
window.addEventListener("load", (event) => {
7777
VE.helpers.createConfirmationDialog({
78-
title: '<?= _("Error") ?>',
7978
message: '<?= htmlentities($_SESSION["error_msg"]) ?>'
8079
});
8180
});

web/templates/pages/edit_server.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ class="form-control"
685685
<label for="v_backup_mode" class="form-label">
686686
<?= _("Compression") ?>
687687
<a
688-
href="http://docs.hestiacp.com/admin_docs/backups.html#what-is-the-difference-between-zstd-and-gzip"
688+
href="https://hestiacp.com/docs/server-administration/backup-restore.html#what-is-the-difference-between-zstd-and-gzip"
689689
target="_blank"
690690
class="u-ml5"
691691
>
@@ -705,7 +705,7 @@ class="u-ml5"
705705
<label for="v_backup_gzip" class="form-label">
706706
<?= _("Compression level") ?>
707707
<a
708-
href="http://docs.hestiacp.com/admin_docs/backups.html#what-is-the-optimal-compression-ratio"
708+
href="https://hestiacp.com/docs/server-administration/backup-restore.html#what-is-the-optimal-compression-ratio"
709709
target="_blank"
710710
class="u-ml5"
711711
>
@@ -728,7 +728,7 @@ class="u-ml5"
728728
<label for="v_backup_dir" class="form-label">
729729
<?= _("Directory") ?>
730730
<a
731-
href="https://hestiacp.com/docs/server-administration/backup-restore.html#how-to-change-default-backup-folder"
731+
href=""
732732
target="_blank"
733733
class="u-ml5"
734734
>
@@ -761,7 +761,7 @@ class="form-check-input"
761761
<label for="backup_type" class="form-label">
762762
<?= _("Protocol") ?>
763763
<a
764-
href="http://docs.hestiacp.com/admin_docs/backups.html#what-kind-of-protocols-are-currently-supported"
764+
href="https://hestiacp.com/docs/server-administration/backup-restore.html#what-kind-of-protocols-are-currently-supported"
765765
target="_blank"
766766
class="u-ml5"
767767
>

0 commit comments

Comments
 (0)