diff --git a/Shogi.UI/Layout/MainLayout.razor.css b/Shogi.UI/Layout/MainLayout.razor.css
index 009e47b..d4e7026 100644
--- a/Shogi.UI/Layout/MainLayout.razor.css
+++ b/Shogi.UI/Layout/MainLayout.razor.css
@@ -1,12 +1,6 @@
.MainLayout {
display: grid;
- grid-template-columns: auto 1fr;
- grid-template-rows: 100vh;
+ grid-template-rows: auto 1fr;
place-items: stretch;
-}
-
-@media all and (max-width: 600px) {
- .MainLayout {
- grid-template-columns: min-content max-content;
- }
-}
+ gap: 5px;
+}
\ No newline at end of file
diff --git a/Shogi.UI/Layout/NavMenu.razor b/Shogi.UI/Layout/NavMenu.razor
index 441f068..246c67d 100644
--- a/Shogi.UI/Layout/NavMenu.razor
+++ b/Shogi.UI/Layout/NavMenu.razor
@@ -1,52 +1,61 @@
@inject NavigationManager navigator
@inject ShogiApi Api
-
+
@code {
async Task CreateSession()
+
+
+
{
+
+
+
var sessionId = await Api.PostSession();
+
+
+
if (!string.IsNullOrEmpty(sessionId))
+
+
+
{
+
+
+
navigator.NavigateTo($"play/{sessionId}");
+
+
+
}
+
+
+
}
}
diff --git a/Shogi.UI/Layout/NavMenu.razor.css b/Shogi.UI/Layout/NavMenu.razor.css
index 0704f82..34109ff 100644
--- a/Shogi.UI/Layout/NavMenu.razor.css
+++ b/Shogi.UI/Layout/NavMenu.razor.css
@@ -1,13 +1,13 @@
.NavMenu {
display: flex;
- flex-direction: column;
+ flex-direction: row;
border-right: 2px solid #444;
+ place-items: baseline;
+ gap: 3px;
}
.NavMenu > * {
- padding: 0 0.5rem;
-}
-.NavMenu h1 {
+ padding: 0 0.5rem !important;
}
.NavMenu .spacer {
diff --git a/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor b/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor
index 8dbd0b0..9ecf4d7 100644
--- a/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor
+++ b/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor
@@ -3,102 +3,105 @@
-
+
@for (var rank = 1; rank < 10; rank++)
+
{
+
foreach (var file in Files)
+
{
+
var position = $"{file}{rank}";
+
var piece = Session?.BoardState.Board[position];
+
var isSelected = piece != null && SelectedPosition == position;
@if (piece != null)
+
{
}
}
+
}
-
- 9
- 8
- 7
- 6
- 5
- 4
- 3
- 2
- 1
-
-
- A
- B
- C
- D
- E
- F
- G
- H
- I
-
+
+ 9
+ 8
+ 7
+ 6
+ 5
+ 4
+ 3
+ 2
+ 1
+
+
+ A
+ B
+ C
+ D
+ E
+ F
+ G
+ H
+ I
+
@if (Session != null && UseSideboard == true)
+
{
-