Skip to content

Commit ff493fc

Browse files
committed
fix: layout
1 parent c1b8e74 commit ff493fc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/App.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,15 @@ function App() {
259259
<CardTitle>QR code 與 JSON 結果</CardTitle>
260260
<CardDescription>生成後可直接掃描 QR code 並複製 JSON 字串。</CardDescription>
261261
</CardHeader>
262-
<CardContent className="flex flex-col gap-6 lg:h-[560px]">
263-
<div className="flex flex-col gap-4 lg:flex-[2]">
264-
<Separator className="mb-2 lg:mb-4" />
262+
<CardContent className="flex flex-col gap-5 lg:h-[620px]">
263+
<div className="flex flex-col gap-2 lg:flex-[1.6]">
264+
<Separator className="mb-1 lg:mb-1.5" />
265265
{hasResult ? (
266-
<div className="flex flex-col items-center gap-4">
266+
<div className="flex flex-col items-center gap-3">
267267
<img
268268
src={qrCodeDataUrl}
269269
alt="SJ QR code"
270-
className="h-auto w-52 rounded border bg-white p-3 shadow"
270+
className="h-auto w-60 rounded border bg-white p-2 shadow"
271271
/>
272272
<p className="text-center text-xs text-muted-foreground">
273273
如果顯示模糊,請再試一次或提高螢幕亮度後掃描。
@@ -284,13 +284,13 @@ function App() {
284284

285285
<Separator />
286286

287-
<div className="flex flex-col gap-4 lg:flex-[1]">
287+
<div className="flex flex-col gap-4 lg:flex-[1.4]">
288288
<p className="text-sm font-medium text-muted-foreground">JSON 資料</p>
289289
<Textarea
290290
value={jsonPayload}
291291
readOnly
292292
placeholder="完成表單後會自動生成 JSON 資料"
293-
className="min-h-[160px] font-mono text-sm lg:h-full lg:min-h-0"
293+
className="min-h-[260px] font-mono text-sm lg:h-full lg:min-h-0"
294294
/>
295295
</div>
296296
</CardContent>

0 commit comments

Comments
 (0)