mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-10 15:10:53 +00:00
Update SkipSegmentButton.tsx
This commit is contained in:
parent
427828d714
commit
64a241e2ed
1 changed files with 2 additions and 3 deletions
|
|
@ -182,9 +182,8 @@ function SkipSegmentButton(props: {
|
||||||
`bottom-[calc($1 + ${verticalOffset}px)]`,
|
`bottom-[calc($1 + ${verticalOffset}px)]`,
|
||||||
);
|
);
|
||||||
|
|
||||||
let show = false;
|
// Show button whenever we're in a segment (not only on hover after first 10s)
|
||||||
if (showingState === "always") show = true;
|
const show = showingState === "always" || showingState === "hover";
|
||||||
else if (showingState === "hover" && props.controlsShowing) show = true;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Transition
|
<Transition
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue