Skip to content

Commit

Permalink
fix button not full width on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Oct 4, 2024
1 parent 03b66dd commit 900f632
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ class="thin mobile-grow" />
<h2><?= translate("two_factor_authentication", $i18n) ?></h2>
</header>
<div class="account-2fa">
<div class="form-group">
<div class="buttons">
<?php
if (!$userData['totp_enabled']) {
?>
<input type="button" value="<?= translate('enable_two_factor_authentication', $i18n) ?>" id="enableTotp"
onClick="enableTotp()" />
onClick="enableTotp()" class="button thin mobile-grow"/>
<div class="totp-popup" id="totp-popup">
<header>
<h3><?= translate('enable_two_factor_authentication', $i18n) ?></h3>
Expand Down Expand Up @@ -199,7 +199,7 @@ class="thin mobile-grow" />
<?php
} else {
?>
<input type="button" class="button secondary-button"
<input type="button" class="button secondary-button thin mobile-grow"
value="<?= translate('disable_two_factor_authentication', $i18n) ?>" id="disableTotp"
onClick="disableTotp()" />
<div class="totp-popup" id="totp-disable-popup">
Expand Down
7 changes: 6 additions & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -846,13 +846,18 @@ header #avatar {
.account-fixer .buttons,
.account-categories .buttons,
.account-notifications .buttons,
.admin-form .buttons {
.admin-form .buttons,
.account-2fa .buttons {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 20px;
}

.account-2fa .buttons {
justify-content: flex-start;
}

.admin-form hr {
margin: 20px 0px;
color: var(--main-color);
Expand Down

0 comments on commit 900f632

Please sign in to comment.