Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the spacing between the qrCode and URL boxes wider #42

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ body {
margin: 20px auto;
}

.liffIdBox {
.appInfo {
margin: 40px 0;
width: 400px;
display: flex;
flex-direction: column;
gap: 16px;
}

.liffIdBox {
max-width: 400px;
}

.qrCode {
max-width: 128px;
height: auto;
Expand All @@ -32,12 +35,3 @@ body {
padding: 0 15px;
}
}


@media only screen and (max-width: 480px) {
.liffIdBox {
width: auto;
display: block;
}
}

6 changes: 4 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ function App() {
This “LINE MINI App Playground” is available only in Japan.
</div>
) : null}
<div className={styles.liffIdBox}>
<Input readonly value={`URL: ${appUrl}`} />
<div className={styles.appInfo}>
<div className={styles.liffIdBox}>
<Input readonly value={`URL: ${appUrl}`} />
</div>
<img src={QR_IMG_MAP[filter]} className={styles.qrCode} />
</div>
<h1>Client APIs</h1>
Expand Down