Skip to content

Commit 5f69a4e

Browse files
ryo-manbaclaude
andcommitted
fix: bottom legend spacing, sync JA playground, run fmt
- Adjust bottom legend padding (24px) for proper spacing from X-axis - Sync JA playground with EN version (same structure, grid options, no Table Data section, Astro attribute cleanup) - Run oxfmt on all source files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5b1edad commit 5f69a4e

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

docs/src/pages/ja/playground.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Footer from "../../components/Footer.astro";
1111
<section class="px-6 pt-28 pb-10 max-w-5xl mx-auto text-center">
1212
<h1 class="text-4xl font-heading font-extrabold tracking-tight text-text">Playground</h1>
1313
<p class="mt-4 text-lg text-text-secondary max-w-2xl mx-auto leading-relaxed">
14-
チャートタイプを選んでオプションをカスタマイズ。テーブルデータを編集してリアルタイムで変化を確認できます
14+
チャートタイプを選んでオプションをカスタマイズ。リアルタイムで変化を確認できます
1515
</p>
1616
</section>
1717

@@ -97,7 +97,9 @@ import Footer from "../../components/Footer.astro";
9797
<div class="mb-5">
9898
<label class="text-sm text-text-secondary mb-2 block">グリッド</label>
9999
<div class="flex flex-wrap gap-2" id="grid-group">
100-
<button type="button" class="pill-btn active" data-group="grid" data-value="y">y</button>
100+
<button type="button" class="pill-btn active" data-group="grid" data-value="y">horizontal</button>
101+
<button type="button" class="pill-btn" data-group="grid" data-value="x">vertical</button>
102+
<button type="button" class="pill-btn" data-group="grid" data-value="both">both</button>
101103
<button type="button" class="pill-btn" data-group="grid" data-value="none">none</button>
102104
</div>
103105
</div>
@@ -144,7 +146,7 @@ import Footer from "../../components/Footer.astro";
144146

145147
<!-- Animate toggle -->
146148
<div class="flex items-center gap-3 mb-4">
147-
<label class="text-sm text-text-secondary">アニメーション</label>
149+
<label class="text-sm text-text-secondary">有効にする</label>
148150
<input
149151
type="checkbox"
150152
id="animate-input"

src/renderer/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export function createSvg(w: number, h: number): SVGSVGElement {
2222
export function computeLayout(c: ChartConfig, sc: number): ChartLayout {
2323
const w = 500,
2424
legendBottom = c.legend === "bottom" && sc > 1,
25-
h = c.height + (legendBottom ? 32 : 0),
25+
h = c.height + (legendBottom ? 24 : 0),
2626
pt = 20 + (c.legend === "top" && sc > 1 ? 28 : 0),
2727
pl = 46,
2828
pr = 20,
29-
pb = 36 + (legendBottom ? 32 : 0);
29+
pb = 36 + (legendBottom ? 24 : 0);
3030
return {
3131
width: w,
3232
height: h,

0 commit comments

Comments
 (0)