diff --git a/Guestlist/Components/Pages/Admin.razor b/Guestlist/Components/Pages/Admin.razor index 4c306cc..89e35a4 100644 --- a/Guestlist/Components/Pages/Admin.razor +++ b/Guestlist/Components/Pages/Admin.razor @@ -9,130 +9,138 @@
-
-
-

Guest access

-

Change the code guests use to view the list.

+
+
+
+

Guest access

+

Change the code guests use to view the list.

-
-
- - -
+ +
+ + +
- -
+ + - @if (!string.IsNullOrWhiteSpace(AccessCodeMessage)) - { - - } -
-
+ @if (!string.IsNullOrWhiteSpace(AccessCodeMessage)) + { + + } +
+
-
-
-

Create maintainer

-

Maintainers can add, edit and delete guests.

+
+
+

Reset setup

+

Copy the current database to a timestamped backup database and start setup with a fresh database.

-
-
- - -
+ + +
-
- - -
+ @if (!string.IsNullOrWhiteSpace(Message)) + { + + } +
+
+
-
- - -
+
+
+
+

Create maintainer

+

Maintainers can add, edit and delete guests.

- - +
+
+ + +
- @if (!string.IsNullOrWhiteSpace(MaintainerMessage)) - { - - } -
-
+
+ + +
-
-
-

Maintainers

+
+ + +
- @if (Maintainers is null) - { -

Loading maintainers...

- } - else if (Maintainers.Count == 0) - { -

No maintainers have been created yet.

- } - else - { -
- @foreach (var maintainer in Maintainers) - { -
-
-
@maintainer.DisplayName
-
@maintainer.Username
+ + + + @if (!string.IsNullOrWhiteSpace(MaintainerMessage)) + { + + } +
+
+
+ +
+
+
+

Maintainers

+ + @if (Maintainers is null) + { +

Loading maintainers...

+ } + else if (Maintainers.Count == 0) + { +

No maintainers have been created yet.

+ } + else + { +
+ @foreach (var maintainer in Maintainers) + { +
+
+
@maintainer.DisplayName
+
@maintainer.Username
+
+
+ + +
-
- - -
-
- } -
- } -
-
+ } +
+ } + + + -
-
-

Setup recovery

-

Use this after a partial setup if admin access exists but setup is incomplete.

+
+
+
+

Setup recovery

+

Use this after a partial setup if admin access exists but setup is incomplete.

-
- -
+
+ +
- @if (!string.IsNullOrWhiteSpace(RecoveryMessage)) - { - - } -
-
- -
-
-

Reset setup

-

Copy the current database to a timestamped backup database and start setup with a fresh database.

- -
- -
- - @if (!string.IsNullOrWhiteSpace(Message)) - { - - } -
-
+ @if (!string.IsNullOrWhiteSpace(RecoveryMessage)) + { + + } +
+
+ diff --git a/Guestlist/Components/Pages/GuestList.razor b/Guestlist/Components/Pages/GuestList.razor index 825dac0..57d6a36 100644 --- a/Guestlist/Components/Pages/GuestList.razor +++ b/Guestlist/Components/Pages/GuestList.razor @@ -59,7 +59,7 @@ else if (!FilteredGuestEntries.Any()) } else { -
+
@foreach (var guest in FilteredGuestEntries) {
diff --git a/Guestlist/Components/Pages/Guests.razor b/Guestlist/Components/Pages/Guests.razor index 308482e..d6fb56c 100644 --- a/Guestlist/Components/Pages/Guests.razor +++ b/Guestlist/Components/Pages/Guests.razor @@ -29,7 +29,7 @@ } -
+

Add guest

diff --git a/Guestlist/wwwroot/app.css b/Guestlist/wwwroot/app.css index 88ae2bb..99d3879 100644 --- a/Guestlist/wwwroot/app.css +++ b/Guestlist/wwwroot/app.css @@ -35,7 +35,14 @@ a, .btn-link { align-items: start; } -.admin-panel-grid > .card { +.admin-panel-column { + display: flex; + min-width: 0; + flex-direction: column; + gap: 1rem; +} + +.admin-panel-column > .card { border-radius: 8px; } @@ -56,6 +63,21 @@ a, .btn-link { overflow-wrap: anywhere; } +.guest-masonry-grid { + display: block; + column-width: 22rem; + column-gap: 1rem; +} + +.guest-masonry-grid > .card { + display: inline-block; + width: 100%; + min-width: 0; + max-width: none; + margin: 0 0 1rem; + break-inside: avoid; +} + .auth-shell { min-height: calc(100vh - 160px); display: flex;