[PlayerPanel] 세로형 라이브방송 라이브채널 css
This commit is contained in:
@@ -106,11 +106,14 @@ export default memo(function PlayerItemCard({
|
|||||||
|
|
||||||
const progressStyle = useMemo(() => ({ width: `${percent}%` }), [percent]);
|
const progressStyle = useMemo(() => ({ width: `${percent}%` }), [percent]);
|
||||||
const ariaLabel = "Selected, " + patnerName + " " + productName;
|
const ariaLabel = "Selected, " + patnerName + " " + productName;
|
||||||
|
|
||||||
|
console.log("#liveInfo", liveInfo);
|
||||||
return (
|
return (
|
||||||
<SpottableComponent
|
<SpottableComponent
|
||||||
className={classNames(
|
className={classNames(
|
||||||
css[type],
|
css[type],
|
||||||
videoVerticalVisible && css.videoVertical
|
!liveInfo && videoVerticalVisible && css.vodVideoVertical,
|
||||||
|
liveInfo && videoVerticalVisible && css.liveVideoVertical
|
||||||
)}
|
)}
|
||||||
onBlur={_onBlur}
|
onBlur={_onBlur}
|
||||||
onClick={_onClick}
|
onClick={_onClick}
|
||||||
@@ -143,7 +146,12 @@ export default memo(function PlayerItemCard({
|
|||||||
</div>
|
</div>
|
||||||
<h3 className={css.title}>{productName}</h3>
|
<h3 className={css.title}>{productName}</h3>
|
||||||
{liveInfo && (
|
{liveInfo && (
|
||||||
<div className={css.progressBarWrap}>
|
<div
|
||||||
|
className={classNames(
|
||||||
|
css.progressBarWrap,
|
||||||
|
videoVerticalVisible && css.videoVerticalProgress
|
||||||
|
)}
|
||||||
|
>
|
||||||
<div className={css.progressBar}>
|
<div className={css.progressBar}>
|
||||||
<div
|
<div
|
||||||
className={classNames(css.gauge, focused && css.focused)}
|
className={classNames(css.gauge, focused && css.focused)}
|
||||||
|
|||||||
@@ -10,9 +10,13 @@
|
|||||||
border: solid 1px @COLOR_GRAY02;
|
border: solid 1px @COLOR_GRAY02;
|
||||||
background-color: @COLOR_WHITE;
|
background-color: @COLOR_WHITE;
|
||||||
|
|
||||||
&.videoVertical {
|
&.vodVideoVertical {
|
||||||
.size(@w: 540px, @h: 176px);
|
.size(@w: 540px, @h: 176px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.liveVideoVertical {
|
||||||
|
.size(@w: 540px, @h: 236px);
|
||||||
|
}
|
||||||
.imageWrap {
|
.imageWrap {
|
||||||
position: relative;
|
position: relative;
|
||||||
.size(@w: 200px, @h: 200px);
|
.size(@w: 200px, @h: 200px);
|
||||||
@@ -84,6 +88,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.videoVerticalProgress {
|
||||||
|
.size(@w: 284px , @h: 8px);
|
||||||
|
|
||||||
|
> div {
|
||||||
|
max-width: 284px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export default function LiveChannelContents({
|
|||||||
liveInfos,
|
liveInfos,
|
||||||
selectedIndex,
|
selectedIndex,
|
||||||
setSelectedIndex,
|
setSelectedIndex,
|
||||||
|
videoVerticalVisible,
|
||||||
tabIndex,
|
tabIndex,
|
||||||
handleItemFocus,
|
handleItemFocus,
|
||||||
}) {
|
}) {
|
||||||
@@ -62,6 +63,7 @@ export default function LiveChannelContents({
|
|||||||
imageAlt={prdtId}
|
imageAlt={prdtId}
|
||||||
logo={patncLogoPath}
|
logo={patncLogoPath}
|
||||||
imageSource={thumbnailUrl ? thumbnailUrl : dfltThumbnailImgPath}
|
imageSource={thumbnailUrl ? thumbnailUrl : dfltThumbnailImgPath}
|
||||||
|
videoVerticalVisible={videoVerticalVisible}
|
||||||
productName={showNm}
|
productName={showNm}
|
||||||
patnerName={patncNm}
|
patnerName={patncNm}
|
||||||
onClick={handleItemClick}
|
onClick={handleItemClick}
|
||||||
@@ -83,10 +85,9 @@ export default function LiveChannelContents({
|
|||||||
dataSize={liveInfos.length}
|
dataSize={liveInfos.length}
|
||||||
direction="vertical"
|
direction="vertical"
|
||||||
renderItem={renderItem}
|
renderItem={renderItem}
|
||||||
itemWidth={600}
|
itemWidth={videoVerticalVisible ? 540 : 600}
|
||||||
itemHeight={236}
|
itemHeight={236}
|
||||||
spacing={12}
|
spacing={12}
|
||||||
className={css.itemList}
|
|
||||||
noScrollByWheel={false}
|
noScrollByWheel={false}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user