Fix Issue #7: Add status message element and fix column resizing bug #8

Open
Weyoun wants to merge 6 commits from fix/issue-7-and-column-resize into main
Showing only changes of commit df3735a8ec - Show all commits

View File

@ -92,27 +92,26 @@ body {
.game-container { .game-container {
flex: 1; flex: 1;
display: grid; display: grid;
grid-template-columns: minmax(200px, 250px) minmax(600px, 3fr) minmax(200px, 250px); grid-template-columns: 250px 600px 250px;
gap: 2rem; gap: 2rem;
padding: 2rem; padding: 2rem;
max-width: 1600px; max-width: 1600px;
margin: 0 auto; margin: 0 auto;
justify-content: center;
} }
.board-section { .board-section {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
min-width: 600px; width: 600px;
width: 100%;
} }
.game-sidebar { .game-sidebar {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1.5rem; gap: 1.5rem;
width: 100%; width: 250px;
max-width: 250px;
} }
.captured-pieces { .captured-pieces {
@ -120,8 +119,7 @@ body {
padding: 1rem; padding: 1rem;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
width: 100%; width: 250px;
max-width: 250px;
} }
.captured-pieces h3 { .captured-pieces h3 {
@ -136,7 +134,7 @@ body {
flex-wrap: wrap; flex-wrap: wrap;
gap: 0.5rem; gap: 0.5rem;
min-height: 60px; min-height: 60px;
max-width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }
@ -146,8 +144,7 @@ body {
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
flex: 1; flex: 1;
width: 100%; width: 250px;
max-width: 250px;
} }
.move-history { .move-history {
@ -156,7 +153,7 @@ body {
overflow-x: hidden; overflow-x: hidden;
font-family: 'Courier New', monospace; font-family: 'Courier New', monospace;
font-size: 0.9rem; font-size: 0.9rem;
width: 100%; width: 218px;
} }
.game-controls { .game-controls {