Skip to content

Commit

Permalink
use css module
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Mar 30, 2024
1 parent 72b66a0 commit 9854090
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/frontend/src/pages/settings/2fa.qrdialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</I18n>
<div>{{ i18n.ts._2fa.step2 }}</div>
<div>
<a :class="$style.qr" :href="twoFactorData.url"><img :src="twoFactorData.qr"></a>
<a :class="$style.qrRoot" :href="twoFactorData.url"><img :class="$style.qr" :src="twoFactorData.qr"></a>
<!-- QRコード側にマージンが入っているので直下でOK -->
<div><MkButton inline rounded link :to="twoFactorData.url" :linkBehavior="'browser'">{{ i18n.ts.launchApp }}</MkButton></div>
</div>
Expand Down Expand Up @@ -181,14 +181,14 @@ function allDone() {
transform: translateX(-50px);
}
.qr {
.qrRoot {
display: block;
margin: 0 auto;
width: 200px;
max-width: 100%;
}
> img {
width: 100%;
}
.qr {
width: 100%;
}
</style>

0 comments on commit 9854090

Please sign in to comment.