@limrun/ui 0.4.0 → 0.4.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limrun/ui",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,18 +1,24 @@
1
1
  .rc-container {
2
2
  position: relative;
3
- display: inline-block;
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: center;
4
6
  box-sizing: border-box;
5
7
  isolation: isolate;
6
8
 
7
9
  touch-action: none;
10
+ width: 100%;
11
+ height: 100%;
8
12
  }
9
13
 
10
14
  .rc-container-portrait {
15
+ width: 100%;
11
16
  height: 100%;
12
17
  }
13
18
 
14
19
  .rc-container-landscape {
15
20
  width: 100%;
21
+ height: 100%;
16
22
  }
17
23
 
18
24
  .rc-phone-frame {
@@ -21,15 +27,23 @@
21
27
  display: block;
22
28
  pointer-events: none;
23
29
  user-select: none;
30
+ width: auto;
31
+ height: auto;
32
+ max-width: 100%;
33
+ max-height: 100%;
24
34
  }
25
35
 
26
36
  .rc-phone-frame-portrait {
27
- height: 100%;
37
+ width: auto;
38
+ height: auto;
28
39
  max-width: 100%;
40
+ max-height: 100%;
29
41
  }
30
42
 
31
43
  .rc-phone-frame-landscape {
32
- width: 100%;
44
+ width: auto;
45
+ height: auto;
46
+ max-width: 100%;
33
47
  max-height: 100%;
34
48
  }
35
49
 
@@ -38,6 +52,7 @@
38
52
  /* Size is controlled by inline style; defaults are for frameless mode */
39
53
  width: 100%;
40
54
  height: 100%;
55
+ z-index: 30;
41
56
  outline: none;
42
57
  pointer-events: none;
43
58
  cursor: none;
@@ -53,12 +68,6 @@
53
68
  bottom: auto;
54
69
  }
55
70
 
56
- .rc-video-ios-stretch {
57
- /* iOS-only: intentionally stretch to fill the target screen box */
58
- object-fit: fill;
59
- z-index: 30;
60
- }
61
-
62
71
  .rc-video-frameless {
63
72
  position: relative;
64
73
  height: 100%;
@@ -1023,7 +1023,6 @@ export const RemoteControl = forwardRef<RemoteControlHandle, RemoteControlProps>
1023
1023
  className={clsx(
1024
1024
  'rc-video',
1025
1025
  !showFrame && 'rc-video-frameless',
1026
- showFrame && platform === 'ios' && 'rc-video-ios-stretch',
1027
1026
  !videoLoaded && 'rc-video-loading',
1028
1027
  )}
1029
1028
  style={{