Keep event log toggle in place
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Corner button that reopens the collapsed inline Event Log. */
|
||||
/* Corner button that toggles the inline Event Log without moving. */
|
||||
.log-reopen-btn {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
export let state;
|
||||
|
||||
// The inline Event Log can be collapsed to a corner button to declutter.
|
||||
// The inline Event Log can be toggled from a fixed corner button to declutter.
|
||||
let logOpen = true;
|
||||
|
||||
$: hand = state.player.hand_cards ? JSON.parse(state.player.hand_cards) : [];
|
||||
@@ -70,8 +70,10 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if !logOpen}
|
||||
<button class="log-reopen-btn" title="Show the event log" on:click={() => (logOpen = true)}>
|
||||
📜 Event Log
|
||||
</button>
|
||||
{/if}
|
||||
<button
|
||||
class="log-reopen-btn"
|
||||
title={logOpen ? 'Hide the event log' : 'Show the event log'}
|
||||
on:click={() => (logOpen = !logOpen)}
|
||||
>
|
||||
{logOpen ? '✕ Close Log' : '📜 Event Log'}
|
||||
</button>
|
||||
|
||||
@@ -6,10 +6,17 @@
|
||||
// - Add a CHANGELOG entry only when a commit changes something players can
|
||||
// see. Skip refactors, tests, and tooling. Keep wording player-facing.
|
||||
|
||||
export const VERSION = 13;
|
||||
export const VERSION = 14;
|
||||
|
||||
// Newest first. Each entry: { version, date: 'YYYY-MM-DD', changes: [string, ...] }.
|
||||
export const CHANGELOG = [
|
||||
{
|
||||
version: 14,
|
||||
date: '2026-07-10',
|
||||
changes: [
|
||||
'The corner Event Log button now stays put when the log is open, so it can be closed again without moving your mouse.',
|
||||
],
|
||||
},
|
||||
{
|
||||
version: 13,
|
||||
date: '2026-07-10',
|
||||
|
||||
Reference in New Issue
Block a user