Skip to content

Commit

Permalink
tweak 2643170
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Oct 5, 2024
1 parent ff53bf5 commit 3d285aa
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 6 deletions.
3 changes: 3 additions & 0 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3037,3 +3037,6 @@ _scheduledNoteDelete:
deadlineDate: "End date"
deadlineTime: "Time"
duration: "Duration"
_getQRCode:
title: "Scan QR Code"
description: "Can scan or share the QR code below."
10 changes: 10 additions & 0 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11872,6 +11872,16 @@ export interface Locale extends ILocale {
*/
"duration": string;
};
"_getQRCode": {
/**
* QRコードをスキャンする
*/
"title": string;
/**
* 以下のQRコードをスキャンまたは共有できます。
*/
"description": string;
};
}
declare const locales: {
[lang: string]: Locale;
Expand Down
4 changes: 4 additions & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3164,3 +3164,7 @@ _scheduledNoteDelete:
deadlineDate: "期日"
deadlineTime: "時間"
duration: "期間"

_getQRCode:
title: "QRコードをスキャンする"
description: "以下のQRコードをスキャンまたは共有できます。"
3 changes: 3 additions & 0 deletions locales/ko-KR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3068,3 +3068,6 @@ _scheduledNoteDelete:
deadlineDate: "기한"
deadlineTime: "시간"
duration: "기간"
_getQRCode:
title: "QR 코드 스캔하기"
description: "아래 QR 코드를 스캔하거나 공유할 수 있어요."
25 changes: 19 additions & 6 deletions packages/frontend/src/components/MkQRCode.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<template>
<MkModal ref="modal" :zPriority="'middle'" @closed="$emit('closed')">
<div :class="$style.root">
<div :class="$style.title">
<div :class="$style.body">
<div :class="$style.title">{{ i18n.ts._getQRCode.title }}</div>
<div :class="$style.description">{{ i18n.ts._getQRCode.description }}</div>
<QRCodeVue3
:value="qrCode"
:qrOptions="{ errorCorrectionLevel: 'Q' }"
Expand All @@ -13,8 +15,8 @@
/>
</div>
<div class="_flexList" style="gap: 0.6rem">
<MkButton :class="$style.gotIt" primary full @click="gotIt()">{{ i18n.ts.gotIt }}</MkButton>
<MkButton :class="$style.copyLink" full @click="copyLink()">{{ i18n.ts.copyLink }}</MkButton>
<MkButton :class="$style.copyLink" rounded full @click="copyLink()">{{ i18n.ts.copyLink }}</MkButton>
<MkButton :class="$style.gotIt" primary rounded full @click="gotIt()">{{ i18n.ts.gotIt }}</MkButton>
</div>
</div>
</MkModal>
Expand Down Expand Up @@ -58,13 +60,14 @@ const copyLink = () => {
border-radius: var(--radius);
}
.title {
.body {
font-weight: bold;
> div {
> div {
> img {
max-width: 60%;
padding: 10px 0;
}
}
}
Expand All @@ -74,15 +77,25 @@ const copyLink = () => {
}
}
.title {
font-size: larger;
margin-bottom: 4px;
}
.description {
font-weight: normal;
margin-bottom: 12px;
}
.time {
font-size: 0.8rem;
}
.gotIt {
.copyLink {
margin: 8px 0 0 0;
}
.copyLink {
.gotIt {
margin: 8px 0 0 0;
}
</style>

0 comments on commit 3d285aa

Please sign in to comment.