aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/templates
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-30 03:57:52 -0400
committerhistoria <[not public]>2026-06-30 03:57:52 -0400
commit712072209ab5e3b3a14ebc0c770b020afe544560 (patch)
treef5247fa8e03ed327ecb6cbff622bf6bdccb2066c /internal/admin/templates
parent7a4b91304061777e7b3365b505d1e74878043d35 (diff)
downloadthehouseoficarus-712072209ab5e3b3a14ebc0c770b020afe544560.tar.gz
feat: all admin mapping features working
Diffstat (limited to 'internal/admin/templates')
-rw-r--r--internal/admin/templates/layout.html2
-rw-r--r--internal/admin/templates/map.html10
2 files changed, 7 insertions, 5 deletions
diff --git a/internal/admin/templates/layout.html b/internal/admin/templates/layout.html
index 99c1f0d..ed939bd 100644
--- a/internal/admin/templates/layout.html
+++ b/internal/admin/templates/layout.html
@@ -23,9 +23,9 @@
<a href="/editor/dashboard" class="{{if eq .Page "dashboard"}}active{{end}}">Dashboard</a>
<a href="/editor/files" class="{{if eq .Page "files"}}active{{end}}">Files</a>
<div class="undo-bar">
+ <span class="undo-label"></span>
<button class="undo-btn" onclick="doUndo()" title="">⟲ Undo</button>
<button class="redo-btn" onclick="doRedo()" title="">⟳ Redo</button>
- <span class="undo-label"></span>
</div>
<span style="font-size:11px;color:#888">| {{.Account}}</span>
<a href="/logout" style="font-size:11px">Logout</a>
diff --git a/internal/admin/templates/map.html b/internal/admin/templates/map.html
index 869ee67..6fd6261 100644
--- a/internal/admin/templates/map.html
+++ b/internal/admin/templates/map.html
@@ -11,10 +11,12 @@
<button onclick="changeZ(-1)">-</button>
<span class="z-label" id="zLabel">Z=0</span>
<button onclick="changeZ(1)">+</button>
- <button onclick="changeZ(0)" style="width:auto;font-size:11px">Reset</button>
- <select id="dirSelect" onchange="changeDir(this.value)" style="margin-left:8px;padding:3px 6px;font-size:11px;background:var(--input-bg);color:var(--text);border:1px solid var(--input-border);border-radius:3px;font-family:monospace"></select>
- <button onclick="zoomIn()" title="Zoom in" style="margin-left:8px;width:auto;font-size:14px">&#x2795;</button>
- <button onclick="zoomOut()" title="Zoom out" style="width:auto;font-size:14px">&#x2796;</button>
+ <button onclick="changeZ(0)" style="width:auto;font-size:11px;padding:0 10px;min-width:44px">Reset</button>
+ <span style="font-size:11px;color:#aaa;margin-left:8px">Area:</span>
+ <select id="dirSelect" onchange="changeDir(this.value)" style="padding:3px 6px;font-size:11px;background:var(--input-bg);color:var(--text);border:1px solid var(--input-border);border-radius:3px;font-family:monospace"></select>
+ <span style="font-size:11px;color:#aaa;margin-left:8px">Zoom:</span>
+ <button onclick="zoomIn()" title="Zoom in" style="width:auto;font-size:14px;padding:0 6px;min-width:32px">&#x2795;</button>
+ <button onclick="zoomOut()" title="Zoom out" style="width:auto;font-size:14px;padding:0 6px;min-width:32px">&#x2796;</button>
</div>
<svg id="mapSvg" style="width:100%;height:100%"></svg>
<div class="room-tooltip" id="tooltip" style="display:none"></div>