Move Hole indicator and End Game button to mobile bottom bar
- Add round info and leave button to mobile-bottom-bar HTML - Hide .round-info and #leave-game-btn from header on mobile - Style round info as subtle text, leave button as red-tinted pill - Slim down bottom bar: smaller gaps/padding to fit 4 items - Sync round numbers and leave text via JS (renderGame + bindEvents) - Frees up header space, reduces mobile crowding Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4960,10 +4960,12 @@ body.mobile-portrait .header-col-right {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
/* Hide non-essential header items on mobile */
|
||||
/* Hide items moved to bottom bar on mobile */
|
||||
body.mobile-portrait .active-rules-bar,
|
||||
body.mobile-portrait .game-username,
|
||||
body.mobile-portrait #game-logout-btn {
|
||||
body.mobile-portrait #game-logout-btn,
|
||||
body.mobile-portrait .game-header .round-info,
|
||||
body.mobile-portrait .game-header #leave-game-btn {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@@ -5257,24 +5259,42 @@ body.mobile-portrait #mobile-bottom-bar {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
gap: 8px;
|
||||
background: none;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 8px 20px;
|
||||
padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
|
||||
padding: 6px 12px;
|
||||
padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
|
||||
z-index: 500;
|
||||
}
|
||||
|
||||
body.mobile-portrait #mobile-bottom-bar .mobile-round-info {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
body.mobile-portrait #mobile-bottom-bar .mobile-leave-btn {
|
||||
background: rgba(180, 60, 60, 0.3) !important;
|
||||
border-color: rgba(220, 80, 80, 0.4) !important;
|
||||
color: rgba(255, 120, 120, 0.9) !important;
|
||||
}
|
||||
|
||||
body.mobile-portrait #mobile-bottom-bar .mobile-leave-btn:active {
|
||||
background: rgba(180, 60, 60, 0.5) !important;
|
||||
}
|
||||
|
||||
body.mobile-portrait #mobile-bottom-bar .mobile-bar-btn {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: rgba(255, 255, 255, 0.65);
|
||||
font-size: 0.7rem;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
padding: 7px 20px;
|
||||
padding: 6px 14px;
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
|
||||
Reference in New Issue
Block a user