Skip to content

Fix/sidebar comments playlist - #4276

Open
FaiziNerd wants to merge 2 commits into
code-charity:masterfrom
FaiziNerd:fix/sidebar-comments-playlist
Open

Fix/sidebar comments playlist#4276
FaiziNerd wants to merge 2 commits into
code-charity:masterfrom
FaiziNerd:fix/sidebar-comments-playlist

Conversation

@FaiziNerd

@FaiziNerd FaiziNerd commented Aug 10, 2026

Copy link
Copy Markdown

Summary

  • Fixes blank right column / below-player related videos when Comments → Sidebar is enabled with an expanded playlist or active live chat, outside Theater mode
  • Theater mode already worked around this; normal layout now keeps #secondary and under-player content reachable

Root cause

Comments-sidebar CSS locked #columns to viewport height with overflow: hidden, while #primary used flex-shrink: 0 and resizePlayer() could set an oversized inline width. Playlist/live chat live in #secondary, so that column (and related videos under the player) were clipped off-screen.

Changes

  • Allow #primary to shrink (flex: 1 1 auto) and keep #secondary from being squeezed away
  • Clamp resizePlayer() so primary width always leaves room for the secondary column (≥300px)
  • Cap live chat height in non-theater comments-sidebar mode so comments stay reachable
  • Fix missing comma so Theater/Fullscreen #columns { height: auto } actually applies

Test plan

  • Enable Comments → Sidebar
  • Open a watch page with a playlist expanded, not in Theater mode → right column + related videos under player remain visible/scrollable
  • Open a live video with chat active, not in Theater mode → chat + comments both usable; no blank secondary
  • Toggle Theater mode on/off → layout recovers cleanly, no stuck blank column
  • Comments Sidebar OFF → default YouTube layout unchanged

Fixes Issue #4237

FaiziNerd and others added 2 commits August 11, 2026 03:11
…ity#4254)

Learn AI disclosure labels on watch/Shorts, remember video IDs, and hide those items site-wide like other feed filters.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant