fix(player): a link that opens the cut text is scrolled back into view
Focus had scrolled the clamped box itself; opened, the link dropped by that much, out of a scrolling panel's sight. DESIGN states where Close sits in the stacked layout; a stale test comment goes.
This commit is contained in:
@@ -671,8 +671,8 @@ export default function PlayerModal({
|
||||
// The card's width budget (its maxWidth, below): the video's, and the side panel's when wide.
|
||||
const fitWidth = `(100dvh - 3rem - ${below}px) * 16 / 9`;
|
||||
const panelWidth = panelShut ? PANEL_STRIP : SIDE_PANEL;
|
||||
// One Close, icon only, in the card's top-right corner: the wide panel's head (or its strip), the
|
||||
// stacked card's title row.
|
||||
// One Close, icon only: at the top right of the wide panel's head (or its strip), at the end of the
|
||||
// stacked card's title row under the video.
|
||||
const closeButton = (
|
||||
<IconButton
|
||||
variant="ghost"
|
||||
|
||||
Reference in New Issue
Block a user