Skip to content
This repository was archived by the owner on Aug 26, 2026. It is now read-only.

Commit 217da92

Browse files
raccommodeclaude
andcommitted
fix: move LIVE badge to top-left corner of video player
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3ef65a1 commit 217da92

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

static/model.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,11 +650,11 @@
650650
<span id="theaterText">Theater Mode</span>
651651
</button>
652652
<video id="player" class="video-player" muted autoplay></video>
653+
<span class="live-badge">&#9679; LIVE</span>
653654
<div class="live-controls" id="liveControls">
654655
<button class="live-ctrl-btn" id="livePlayPauseBtn" onclick="liveTogglePlayPause()" title="Play/Pause">&#9646;&#9646;</button>
655656
<button class="live-ctrl-btn" id="liveMuteBtn" onclick="liveToggleMute()" title="Mute/Unmute">&#128263;</button>
656657
<input type="range" class="live-volume-slider" id="liveVolumeSlider" min="0" max="1" step="0.05" value="0.7" oninput="liveChangeVolume(this.value)" />
657-
<span class="live-badge">&#9679; LIVE</span>
658658
<div class="live-ctrl-spacer"></div>
659659
<button class="live-ctrl-btn" id="liveFullscreenBtn" onclick="liveToggleFullscreen()" title="Fullscreen">&#x26F6;</button>
660660
</div>

static/styles.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,12 +2563,16 @@ button {
25632563
}
25642564

25652565
.live-badge {
2566-
color: #ef4444;
2567-
font-size: 0.8rem;
2566+
position: absolute;
2567+
top: 1rem;
2568+
left: 1rem;
2569+
z-index: 10;
2570+
color: #fff;
2571+
background: #ef4444;
2572+
font-size: 0.75rem;
25682573
font-weight: 700;
25692574
letter-spacing: 0.05em;
2570-
padding: 0.2rem 0.6rem;
2571-
border: 1px solid #ef4444;
2575+
padding: 0.25rem 0.6rem;
25722576
border-radius: 4px;
25732577
user-select: none;
25742578
}

static/watch.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<!-- Video Player (Theater Mode) -->
1919
<div class="watch-player-container">
2020
<video id="videoPlayer" class="watch-video" autoplay playsinline></video>
21+
<span class="live-badge">&#9679; LIVE</span>
2122
<div class="live-controls" id="liveControls">
2223
<button class="live-ctrl-btn" id="playPauseBtn" onclick="togglePlayPause()" title="Play/Pause">&#9654;</button>
2324
<button class="live-ctrl-btn" id="muteBtn" onclick="toggleMute()" title="Mute/Unmute">&#128264;</button>
2425
<input type="range" class="live-volume-slider" id="volumeSlider" min="0" max="1" step="0.05" value="0.7" oninput="changeVolume(this.value)" />
25-
<span class="live-badge">&#9679; LIVE</span>
2626
<div class="live-ctrl-spacer"></div>
2727
<button class="live-ctrl-btn" id="fullscreenBtn" onclick="toggleFullscreen()" title="Fullscreen">&#x26F6;</button>
2828
</div>

0 commit comments

Comments
 (0)