@ray-js/ipc-player-integration 0.0.29-beta.13 → 0.0.29-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ui/ui.js +3 -2
- package/lib/ui/ui.less +2 -2
- package/package.json +1 -1
package/lib/ui/ui.js
CHANGED
|
@@ -739,6 +739,7 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
739
739
|
return false;
|
|
740
740
|
});
|
|
741
741
|
const playerContainerHeight = screenType === 'vertical' ? (style === null || style === void 0 ? void 0 : style.height) || '100%' : '100vh';
|
|
742
|
+
const isVerticalFullMode = isVerticalFullLayout && screenType === 'vertical';
|
|
742
743
|
return /*#__PURE__*/React.createElement(UIEventContext.Provider, {
|
|
743
744
|
value: {
|
|
744
745
|
event: eventRef.current,
|
|
@@ -751,7 +752,7 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
751
752
|
})
|
|
752
753
|
}, /*#__PURE__*/React.createElement(View, {
|
|
753
754
|
style: {
|
|
754
|
-
height:
|
|
755
|
+
height: isVerticalFullMode ? `calc(${playerContainerHeight} - 48px)` : playerContainerHeight
|
|
755
756
|
}
|
|
756
757
|
}, /*#__PURE__*/React.createElement(IPCPlayer, {
|
|
757
758
|
defaultMute: mute,
|
|
@@ -835,7 +836,7 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
835
836
|
className: clsx('ipc-player-bottom-content', {
|
|
836
837
|
'ipc-player-bottom-content-hide': componentHideState,
|
|
837
838
|
'ipc-player-bottom-content-show': !componentHideState,
|
|
838
|
-
'ipc-player-bottom-content-full':
|
|
839
|
+
'ipc-player-bottom-content-full': isVerticalFullMode
|
|
839
840
|
}),
|
|
840
841
|
style: {
|
|
841
842
|
height: screenType === 'vertical' ? '48px' : '72px'
|
package/lib/ui/ui.less
CHANGED
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.ipc-player-bottom-content-full {
|
|
29
|
-
|
|
29
|
+
:root[theme='dark'] & {
|
|
30
30
|
background: #000;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
:root[theme='light'] & {
|
|
34
34
|
background: #fff;
|
|
35
35
|
--iconColor: #000;
|
|
36
36
|
|