diff --git a/TODO.md b/TODO.md index ec175df..2f34721 100644 --- a/TODO.md +++ b/TODO.md @@ -4,7 +4,7 @@ - [x] PvP challenges should linger in the UI after completion so that players can see the result, then dismiss it for themselves - [x] Add hat/gun icons next to player names on the player list to indicate if they're the captain and/or have a gat - [x] Replace red/green borders of successful/failed cards with checks and crosses in the upper corner of the card. -- [ ] Add a note taking area to store game state between sessions +- [x] Add a note taking area to store game state between sessions ## Polish diff --git a/frontend/src/assets/css/scene-play.css b/frontend/src/assets/css/scene-play.css index 1fbd444..97fd146 100644 --- a/frontend/src/assets/css/scene-play.css +++ b/frontend/src/assets/css/scene-play.css @@ -24,31 +24,6 @@ } } -/* Corner button that toggles the inline Event Log without moving. */ -.log-reopen-btn { - box-sizing: border-box; - width: 132px; - height: 44px; - white-space: nowrap; - position: fixed; - bottom: 20px; - right: 20px; - z-index: 1000; - padding: 10px 14px; - background: color-mix(in srgb, var(--bg-deep) 95%, transparent); - border: 1px solid var(--edge); - border-radius: var(--radius-md); - box-shadow: var(--shadow-deep); - color: var(--text); - font-weight: bold; - font-family: var(--font-heading); - cursor: pointer; - backdrop-filter: blur(10px); -} -.log-reopen-btn:hover { - background: color-mix(in srgb, var(--accent) 12%, var(--bg-deep)); -} - @media (max-width: 1100px) { .scene-view-layout { grid-template-columns: 1fr; diff --git a/frontend/src/components/EventLog.svelte b/frontend/src/components/EventLog.svelte index 2eacd5e..f192e09 100644 --- a/frontend/src/components/EventLog.svelte +++ b/frontend/src/components/EventLog.svelte @@ -8,6 +8,7 @@ // Inline mode pins the log open as a column (scene phase) instead of the // floating, collapsible corner panel used in every other phase. export let inline = false; + export let headerless = false; const PAGE_SIZE = 50; const BOTTOM_TOLERANCE = 40; // px of slack before we consider the player "scrolled away" @@ -195,12 +196,12 @@ {/key} {/if} - {#if inline} + {#if inline && !headerless}
Your private notes for this game.
+ +