Skip to content

Commit e1c034d

Browse files
authored
Merge pull request #260 from linxianxi/revert-style
demo: revert style
2 parents c0de4d4 + 3c4032f commit e1c034d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

assets/index.less

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@
6767
&-body {
6868
.box;
6969
overflow: hidden;
70-
display: flex;
71-
justify-content: center;
72-
align-items: center;
7370
}
7471

7572
&.zoom-enter,
@@ -104,7 +101,14 @@
104101
max-height: 100%;
105102
pointer-events: auto;
106103
&-wrapper {
107-
pointer-events: auto;
104+
.box;
105+
&::before {
106+
content: '';
107+
display: inline-block;
108+
height: 50%;
109+
width: 1px;
110+
margin-right: -1px;
111+
}
108112
}
109113
}
110114

docs/examples/imageRender.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Image from 'rc-image';
2+
import React from 'react';
23
import '../../assets/index.less';
34

45
export default function imageRender() {
@@ -11,6 +12,8 @@ export default function imageRender() {
1112
toolbarRender: () => null,
1213
imageRender: () => (
1314
<video
15+
muted
16+
style={{ pointerEvents: 'auto' }}
1417
width="100%"
1518
controls
1619
src="https://mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*uYT7SZwhJnUAAAAAAAAAAAAADgCCAQ"

0 commit comments

Comments
 (0)