From a2eaefd6c296460c65901b3476bcc530e428181a Mon Sep 17 00:00:00 2001
From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>
Date: Fri, 6 Nov 2026 13:36:58 +0900
Subject: park-editor: ペットNG等の列を追加し、列幅を調整
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
ペットNG・試合形式のボール遊びNGの列を追加。公園名・複合遊具・その他遊具の列幅を約2倍に広げ、横スクロールで見られるようにした。未確認CSVにも新項目を含める。
---
scripts/park-editor.html | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
(limited to 'scripts')
diff --git a/scripts/park-editor.html b/scripts/park-editor.html
index 89ba668..56827de 100644
--- a/scripts/park-editor.html
+++ b/scripts/park-editor.html
@@ -59,6 +59,12 @@
width: 100pt; min-width: 0; box-sizing: border-box;
padding-left: .1rem; padding-right: .1rem;
}
+ th.c-w-name, td.c-w-name { width: 8.2em; min-width: 8.2em; max-width: 8.2em; box-sizing: border-box; overflow: hidden; }
+ th.c-w-complex, td.c-w-complex { width: 10.2em; min-width: 10.2em; max-width: 10.2em; box-sizing: border-box; overflow: hidden; }
+ th.c-w-other, td.c-w-other { width: 11.4em; min-width: 11.4em; max-width: 11.4em; box-sizing: border-box; overflow: hidden; }
+ td.c-w-name input:not([type="checkbox"]), td.c-w-complex input:not([type="checkbox"]), td.c-w-other input:not([type="checkbox"]) {
+ width: 100%; min-width: 0; box-sizing: border-box;
+ }
td.c-flag2 input, td.c-flag3 input, td.c-short input,
td.c-shelter input, td.c-ja6 input {
width: 100%; min-width: 0; padding-left: .1rem; padding-right: .1rem;
@@ -121,6 +127,8 @@ const DATASETS = {
FIELD("トイレ", "トイレ"), FIELD("水飲み場", "水飲み場"), FIELD("ベンチ・椅子", "ベンチ・椅子"),
FIELD("テーブル", "テーブル"), FIELD("シェルター等", "シェルター
パーゴラ
東屋"),
FIELD("防災用具", "防災用具"), FIELD("ボール遊び", "ボール
遊び"),
+ FIELD("ペットNG", "ペット
NG"),
+ FIELD("試合形式のボール遊びNG", "試合形式の
ボール遊びNG"),
...TOY_ORDER.map(([toy, label]) => ({ key: `__toy_${toy}`, label, toy })),
FIELD("草地広場", "草地
広場"), FIELD("多目的広場", "多目的
広場"),
FIELD("築山", "築山"), FIELD("じゃぶじゃぶ池", "じゃぶ
じゃぶ
池"),
@@ -433,6 +441,9 @@ function render() {
じゃぶじゃぶ池: "c-ja6",
__toy_swing: "c-toy",
__toy_bar: "c-toy",
+ 公園名: "c-w-name",
+ __toy_complex: "c-w-complex",
+ __toy_other: "c-w-other",
};
const headCols = ["#", "確認", "地図"]
.map((label) => ({ label, cls: "" }))
@@ -566,7 +577,7 @@ const PARK_EXPORT_KEYS = [
"町名", "種別", "面積㎡", "設置者", "状態",
"トイレ", "水飲み場", "ベンチ・椅子", "テーブル", "シェルター等",
"草地広場", "多目的広場", "築山", "じゃぶじゃぶ池",
- "防災用具", "ボール遊び", "遊具", "時計", "駐車場", "その他設備", "備考",
+ "防災用具", "ボール遊び", "ペットNG", "試合形式のボール遊びNG", "遊具", "時計", "駐車場", "その他設備", "備考",
"緯度", "経度",
];
--
cgit v1.3.1