This commit is contained in:
dingo
2026-01-11 14:04:33 -05:00
parent 14c50f0aae
commit 74fefb3b7d
5 changed files with 342 additions and 221 deletions
+6 -6
View File
@@ -6,7 +6,7 @@
<style>
.dungeon-map { background: #0a0a15; border: 2px solid #374151; border-radius: 8px; overflow: hidden; position: relative; }
.map-viewport { overflow: auto; max-height: 600px; position: relative; }
.map-viewport { overflow: auto; height: calc(100vh - 350px); min-height: 400px; position: relative; }
.map-canvas { image-rendering: pixelated; cursor: crosshair; display: block; }
.map-canvas.edit-mode { cursor: cell; }
.entity-layer { position: absolute; top: 0; left: 0; pointer-events: none; }
@@ -59,9 +59,9 @@
}
else
{
<div class="flex flex-col lg:flex-row gap-6">
<!-- Left: Map View -->
<div class="flex-1">
<div class="flex flex-col xl:flex-row gap-4">
<!-- Left: Map View (50% on large screens) -->
<div class="w-full xl:w-1/2">
<div class="card p-4">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-semibold text-white">Live Dungeon Map</h2>
@@ -152,8 +152,8 @@ else
</div>
</div>
<!-- Right: Info Panel -->
<div class="w-full lg:w-80 space-y-4">
<!-- Right: Info Panel (50% on large screens) -->
<div class="w-full xl:w-1/2 space-y-4">
<div class="stat-card">
<h3 class="text-lg font-semibold text-white mb-3">Dungeon Info</h3>
<div class="space-y-2 text-sm">