@ray-js/ray-ipc-player 2.0.18-beta-4 → 2.0.18-beta-6

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/index.js CHANGED
@@ -4,9 +4,8 @@ import "core-js/modules/web.dom-collections.iterator.js";
4
4
  import React, { useEffect, useRef, useCallback } from 'react';
5
5
  import { useImmer } from 'use-immer';
6
6
  import { IpcPlayer, View, CoverView } from '@ray-js/components';
7
- import { setPageOrientation } from '@ray-js/ray';
7
+ import { setPageOrientation, usePageEvent } from '@ray-js/ray';
8
8
  import clsx from 'clsx';
9
- import { usePageEvent } from 'ray';
10
9
  import locals from './i18n';
11
10
  import Styles from './index.module.less';
12
11
  import { IpcFailCode } from './constant';
@@ -401,10 +400,7 @@ const Player = props => {
401
400
  }, devId);
402
401
  }
403
402
  }, locals.getLang('ipc_player_re_wake_camera'))) : /*#__PURE__*/React.createElement(View, {
404
- style: {
405
- width: '95%',
406
- textAlign: 'center'
407
- }
403
+ className: clsx(Styles.err_container)
408
404
  }, /*#__PURE__*/React.createElement(View, {
409
405
  className: clsx(Styles.iconfont, Styles.icon_tishi, !playState.deviceOnlineState && Styles.hide)
410
406
  }), /*#__PURE__*/React.createElement(View, {
@@ -111,6 +111,12 @@
111
111
  display: block;
112
112
  }
113
113
 
114
+ .err_container {
115
+ width: 100%;
116
+ text-align: center;
117
+ padding: 0 30px;
118
+ }
119
+
114
120
  .device_sleep, .re_wake_camera {
115
121
  width: 100%;
116
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ray-ipc-player",
3
- "version": "2.0.18-beta-4",
3
+ "version": "2.0.18-beta-6",
4
4
  "description": "ray小程序播放器",
5
5
  "keywords": [
6
6
  "tuya-miniapp",