Commit 5568b4ef authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: backgammon mobile responsive — hide borne-off, smaller checkers, proper stacking

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 262e9506
...@@ -768,24 +768,32 @@ ...@@ -768,24 +768,32 @@
/* ─── Responsive: Mobile < 768px ─────────────────────────────────────────── */ /* ─── Responsive: Mobile < 768px ─────────────────────────────────────────── */
@media (max-width: 768px) { @media (max-width: 768px) {
:root { :root {
--bg-checker-size: 28px; --bg-checker-size: 22px;
} }
.bg-layout { .bg-layout {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 12px; gap: 8px;
padding: 8px; padding: 8px;
} }
.bg-board-column {
width: 100%;
}
.bg-board { .bg-board {
max-width: 100%; max-width: 100%;
border-width: 5px; border-width: 4px;
overflow: hidden;
} }
.bg-borne-off { .bg-borne-off-area {
right: -36px; display: none;
width: 30px; }
.bg-players-bar {
max-width: 100%;
} }
.bg-side-panel { .bg-side-panel {
...@@ -793,6 +801,22 @@ ...@@ -793,6 +801,22 @@
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
gap: 8px; gap: 8px;
align-items: center;
justify-content: center;
}
.bg-turn-indicator {
flex: 1;
min-width: 0;
}
.bg-controls {
padding: 8px;
}
.bg-log {
width: 100%;
max-height: 80px;
} }
.bg-dice-area { .bg-dice-area {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment