oa-componentbook 0.18.289 → 0.18.290
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.
|
@@ -49,7 +49,7 @@ function Preview(_ref) {
|
|
|
49
49
|
const handleCancel = () => setModalOpen(false);
|
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
51
51
|
className: "container"
|
|
52
|
-
},
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
53
53
|
className: "left-icon",
|
|
54
54
|
onClick: handlePrevious,
|
|
55
55
|
src: _leftIcon.default,
|
|
@@ -85,7 +85,7 @@ function Preview(_ref) {
|
|
|
85
85
|
handleZoom();
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
})),
|
|
88
|
+
})), /*#__PURE__*/_react.default.createElement("img", {
|
|
89
89
|
className: "right-icon",
|
|
90
90
|
onClick: handleNext,
|
|
91
91
|
src: _rightIcon.default,
|
|
@@ -97,7 +97,7 @@ function Preview(_ref) {
|
|
|
97
97
|
handleNext();
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
}),
|
|
100
|
+
}), /*#__PURE__*/_react.default.createElement("ul", {
|
|
101
101
|
className: "imgContainer"
|
|
102
102
|
}, srcArray.map((media, index) => /*#__PURE__*/_react.default.createElement("li", {
|
|
103
103
|
key: "media-".concat((0, _utils.getUUID)()),
|
|
@@ -106,7 +106,7 @@ function Preview(_ref) {
|
|
|
106
106
|
className: currentImageIndex === index ? 'selected-thumbnail' : '',
|
|
107
107
|
src: media.src,
|
|
108
108
|
onClick: () => setCurrentImageIndex(index)
|
|
109
|
-
}, /*#__PURE__*/_react.default.createElement("track", {
|
|
109
|
+
}, ' ', /*#__PURE__*/_react.default.createElement("track", {
|
|
110
110
|
kind: "captions"
|
|
111
111
|
})) : /*#__PURE__*/_react.default.createElement("img", {
|
|
112
112
|
className: currentImageIndex === index ? 'selected-thumbnail' : '',
|
|
@@ -1,78 +1,93 @@
|
|
|
1
1
|
.selected {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
width: 302px;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
height: 50vh;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
8
|
}
|
|
9
9
|
.imgContainer {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
display: flex;
|
|
11
|
+
overflow-x: auto;
|
|
12
|
+
background-color: #fafafa;
|
|
13
|
+
box-shadow: 0 -2px 8px 0 rgb(0 0 0 / 12%);
|
|
14
|
+
padding: 16px;
|
|
15
|
+
position: absolute;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
right: 0;
|
|
18
|
+
left: 0;
|
|
19
19
|
}
|
|
20
20
|
.imgArea {
|
|
21
|
-
|
|
21
|
+
margin-right: 20px;
|
|
22
|
+
list-style: none;
|
|
22
23
|
}
|
|
23
|
-
.imgArea img
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
.imgArea img,
|
|
25
|
+
.imgArea video {
|
|
26
|
+
width: 116px !important;
|
|
27
|
+
height: 116px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
}
|
|
31
|
+
.imgArea video {
|
|
32
|
+
border: 1px solid var(--color-divider);
|
|
28
33
|
}
|
|
29
34
|
.imgArea span {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
display: block;
|
|
36
|
+
text-align: center;
|
|
37
|
+
color: var(--color-primary-content);
|
|
33
38
|
}
|
|
34
39
|
.selected img {
|
|
35
|
-
|
|
40
|
+
width: 232px;
|
|
36
41
|
}
|
|
37
|
-
.selected img.zoomIn,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
.selected img.zoomIn,
|
|
43
|
+
.mismatchDrawer .ovrScroll .deicePic .zoomIn {
|
|
44
|
+
width: auto;
|
|
45
|
+
position: absolute;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
opacity: 0.8;
|
|
42
48
|
}
|
|
43
49
|
.left-icon {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 35%;
|
|
52
|
+
font-size: 30px;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
left: 40px;
|
|
49
55
|
}
|
|
50
56
|
.right-icon {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 35%;
|
|
59
|
+
right: 40px;
|
|
60
|
+
font-size: 30px;
|
|
61
|
+
cursor: pointer;
|
|
56
62
|
}
|
|
57
|
-
.zoomModal .ant-modal-body{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
.zoomModal .ant-modal-body {
|
|
64
|
+
height: 420px;
|
|
65
|
+
overflow-x: auto;
|
|
66
|
+
margin: 16px 0 0;
|
|
61
67
|
}
|
|
62
|
-
.zoomModal .closedIcon{
|
|
63
|
-
|
|
68
|
+
.zoomModal .closedIcon {
|
|
69
|
+
display: none;
|
|
64
70
|
}
|
|
65
|
-
.modalImg{
|
|
66
|
-
|
|
71
|
+
.modalImg {
|
|
72
|
+
width: 100%;
|
|
67
73
|
}
|
|
68
74
|
.imgContainer .selected-thumbnail {
|
|
69
|
-
|
|
75
|
+
border: 2px solid var(--color-primary);
|
|
70
76
|
}
|
|
71
77
|
.imgContainer .selected-thumb {
|
|
72
|
-
|
|
78
|
+
color: var(--color-primary);
|
|
79
|
+
}
|
|
80
|
+
.imgContainer span {
|
|
81
|
+
width: 138px;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
text-overflow: ellipsis;
|
|
85
|
+
}
|
|
86
|
+
.selected video {
|
|
87
|
+
height: 320px;
|
|
73
88
|
}
|
|
74
89
|
@media screen and (max-width: 600px) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
90
|
+
.zoomModal .ant-modal-content {
|
|
91
|
+
position: fixed !important;
|
|
92
|
+
}
|
|
93
|
+
}
|