Skip to content

Commit 1c8aa9b

Browse files
committed
[REF]: Improve inline doc and mediaquery style
1 parent e01f557 commit 1c8aa9b

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

src/components/image-preview/FullScreenPreview.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@
1818
.img-rel-container {
1919
position: relative;
2020
height: 80%;
21-
//width: 60%;
22-
@media (max-width: 600px) {
21+
max-width: 95%;
22+
//width: 60%;
23+
@media (max-width: 600px) {
2324
width: 80%;
2425
height: auto;
25-
26-
}
26+
}
27+
@media (max-width: 960px) {
28+
width: 90%;
29+
height: auto;
30+
}
2731
}
2832
.image-full-screen {
2933
//width: 100%;

src/components/image-preview/FullScreenPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const FullScreenPreview:FC<FullScreenPreviewProps> = (props:FullScreenPreviewPro
2626
width="100%"
2727
height="100%"
2828
src={imgSource}
29-
alt=""
29+
alt="full-screen-preview"
3030
className={
3131
"image-full-screen show-image"
3232
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
export interface FullScreenPreviewProps {
2+
/**
3+
* image source in string format
4+
*/
25
imgSource?: string;
6+
/**
7+
* boolean value. Whether to open the preview or not
8+
*/
39
openImage?: boolean;
10+
/**
11+
* handler for on Close operation
12+
*/
413
onClose?: Function;
514
}

0 commit comments

Comments
 (0)