refactor(config): 优化版本切换抽屉与玩法配置输入展示

This commit is contained in:
2026-05-16 11:02:38 +08:00
parent 72a480ccc8
commit 34f9175304
2 changed files with 155 additions and 103 deletions

View File

@@ -315,19 +315,16 @@ export function PlayConfigDocScreen() {
{detail ? (
<p className="text-sm text-muted-foreground">
v{detail.version_no} ·{" "}
{detail.status === "active" ? "生效中" : detail.status === "draft" ? "草稿" : "已归档"}
{activeHead ? (
<>
{" "}
· 线 v{activeHead.version_no}
线 v{activeHead.version_no}
{activeHead.effective_at ? ` · ${activeHead.effective_at}` : ""}
</>
) : null}
{!isDraft ? (
<span className="text-amber-600 dark:text-amber-400">
{" "}
稿
{activeHead ? " — " : ""}
稿
</span>
) : null}
</p>
@@ -378,10 +375,11 @@ export function PlayConfigDocScreen() {
}}
/>
</TableCell>
<TableCell className="w-[120px]">
<TableCell className="w-[96px]">
<Input
type="number"
className="h-8 w-full font-mono tabular-nums text-right"
type="text"
inputMode="numeric"
className="h-8 w-16 font-mono tabular-nums text-center"
value={row.display_order}
disabled={saving}
onChange={(e) => {
@@ -394,8 +392,8 @@ export function PlayConfigDocScreen() {
</TableCell>
<TableCell>
<Input
type="number"
min={0}
type="text"
inputMode="numeric"
className="h-8 font-mono tabular-nums"
disabled={!isDraft || saving}
value={row.min_bet_amount}
@@ -408,8 +406,8 @@ export function PlayConfigDocScreen() {
</TableCell>
<TableCell>
<Input
type="number"
min={0}
type="text"
inputMode="numeric"
className="h-8 font-mono tabular-nums"
disabled={!isDraft || saving}
value={row.max_bet_amount}