[PlayerPanel] onBackbutton flex 적용용
This commit is contained in:
@@ -352,6 +352,12 @@ const MediaControlsBase = kind({
|
||||
Spotlight.focus("player-subtitlebutton");
|
||||
};
|
||||
|
||||
const onSpotlightUp = (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
Spotlight.focus("player-back-button");
|
||||
};
|
||||
|
||||
return (
|
||||
<OuterContainer {...rest} id={id} spotlightId={spotlightId}>
|
||||
{panelInfo?.shptmBanrTpNm !== "LIVE" && (
|
||||
@@ -376,6 +382,7 @@ const MediaControlsBase = kind({
|
||||
size="large"
|
||||
spotlightDisabled={spotlightDisabled}
|
||||
onSpotlightRight={onSpotlightRight}
|
||||
onSpotlightUp={onSpotlightUp}
|
||||
/>
|
||||
|
||||
{/* {noJumpButtons ? null : <MediaButton aria-label={$L('Next')} backgroundOpacity="transparent" css={css} disabled={mediaDisabled || jumpForwardDisabled} icon={jumpForwardIcon} onClick={onJumpForwardButtonClick} size="large" spotlightDisabled={spotlightDisabled} />} */}
|
||||
|
||||
@@ -135,14 +135,6 @@ export default function PlayerOverlayContents({
|
||||
return (
|
||||
<>
|
||||
<Container className={css.overlayContainer}>
|
||||
<SpottableBtn
|
||||
onClick={onClickBack}
|
||||
className={css.backIcon}
|
||||
spotlightId="player-back-button"
|
||||
onSpotlightDown={onSpotlightMoveMediaButton}
|
||||
aria-label="Video Player Close"
|
||||
/>
|
||||
|
||||
{type !== "MEDIA" &&
|
||||
playListInfo.length > 1 &&
|
||||
noLiveContentsVisible && (
|
||||
@@ -205,6 +197,13 @@ export default function PlayerOverlayContents({
|
||||
</div>
|
||||
)}
|
||||
<div className={css.overlayHeader}>
|
||||
<SpottableBtn
|
||||
onClick={onClickBack}
|
||||
className={css.backIcon}
|
||||
spotlightId="player-back-button"
|
||||
onSpotlightDown={onSpotlightMoveMediaButton}
|
||||
aria-label="Video Player Close"
|
||||
/>
|
||||
<div
|
||||
className={panelInfo?.shptmBanrTpNm === "LIVE" && css.liveIcon}
|
||||
aria-label={panelInfo?.shptmBanrTpNm === "LIVE" && "Live Icon"}
|
||||
|
||||
@@ -64,19 +64,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
.backIcon {
|
||||
.size(@w: 60px, @h: 60px);
|
||||
background-size: 60px 60px;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("../../../../assets/images/btn/btn-60-wh-back-nor@3x.png");
|
||||
|
||||
&:focus {
|
||||
background-image: url("../../../../assets/images/btn/btn-60-wh-back-foc@3x.png");
|
||||
}
|
||||
}
|
||||
.overlayHeader {
|
||||
display: flex;
|
||||
|
||||
.backIcon {
|
||||
.size(@w: 60px, @h: 60px);
|
||||
background-size: 60px 60px;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("../../../../assets/images/btn/btn-60-wh-back-nor@3x.png");
|
||||
|
||||
&:focus {
|
||||
background-image: url("../../../../assets/images/btn/btn-60-wh-back-foc@3x.png");
|
||||
}
|
||||
}
|
||||
.liveIcon {
|
||||
.size(@w: 108px, @h: 48px);
|
||||
margin: 6px 0 6px 30px;
|
||||
|
||||
Reference in New Issue
Block a user