Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
eeedb42
refactor: change mousewheel
infeng Jul 25, 2018
ce02eb3
docs: update
infeng Jul 25, 2018
fbca496
2.5.1
infeng Jul 25, 2018
59a32e7
feat: change image cycle
infeng Jul 30, 2018
4ad8df9
docs: update
infeng Jul 30, 2018
2e79c32
2.5.2
infeng Jul 30, 2018
319fd89
chore: remove unused dependencies
infeng Jul 30, 2018
34fa4b4
2.5.3
infeng Jul 30, 2018
79f6918
test: add test
infeng Aug 15, 2018
5719333
chore: add travis again
infeng Aug 15, 2018
61779e5
chore: fix travis.yml error
infeng Aug 16, 2018
4e696df
chore: build ignore test files
infeng Aug 16, 2018
b3b8156
chore: remove yarn.lock
infeng Aug 16, 2018
4c2babf
chore: update package-lock.json
infeng Aug 16, 2018
9887de3
chore: add codecov
infeng Aug 16, 2018
96205bb
chore: codecov with jest
infeng Aug 16, 2018
619fcda
chore: add travis codecov badge in README.md
infeng Aug 16, 2018
ad99183
refactor: loading style
infeng Aug 21, 2018
613a566
docs: update
infeng Aug 21, 2018
c65e54a
2.5.4
infeng Aug 21, 2018
76e9dde
feat: add defaultSize prop
infeng Sep 4, 2018
3dd7d17
feat: add defaultImg prop
infeng Sep 4, 2018
372b916
chore: update README.md
infeng Sep 4, 2018
28973c4
docs: update
infeng Sep 4, 2018
0189fc4
2.6.0
infeng Sep 4, 2018
9887146
Fix introduction grammar
christocarr Oct 18, 2018
d393592
Fix introduction grammar
christocarr Oct 18, 2018
ec26810
Merge pull request #41 from christocarr/master
infeng Oct 19, 2018
fd1ea5f
Update ViewerNav.tsx
khitryk Nov 19, 2018
793e570
Update ViewerNav.tsx
khitryk Nov 19, 2018
f641caf
Update index.less
khitryk Nov 19, 2018
0cc9814
Update ViewerNav.tsx
khitryk Nov 19, 2018
19f0e1d
Update ViewerNav.tsx
khitryk Nov 20, 2018
747a0e9
Merge pull request #43 from khitryk/master
infeng Nov 20, 2018
9b6a72e
docs: update
infeng Nov 20, 2018
09acfd5
2.6.1
infeng Nov 20, 2018
ad01100
feat: add disable keyboard support
infeng Dec 10, 2018
f6f7223
feat: support preserve zoom after change image
infeng Dec 10, 2018
ae0c69c
2.7.0
infeng Dec 10, 2018
c2afdee
chore: update README.md
infeng Dec 10, 2018
3f080ba
feat: support no limit image initialization size
infeng Dec 11, 2018
0fc3915
feat: add defaultScale
infeng Dec 11, 2018
5347052
feat: add noLimitInitializationSize test
infeng Dec 11, 2018
101b03d
feat: add noResetZoomAfterChange test
infeng Dec 11, 2018
c506ff3
refactor: resize behavior
infeng Dec 12, 2018
cd3e0c7
fix: set defaultScale fail
infeng Dec 12, 2018
e060d5d
fix: shake when change image
infeng Dec 12, 2018
b851948
feat: add onChange
infeng Dec 12, 2018
bcd346a
chore: update README.md
infeng Dec 12, 2018
e3cc30b
2.8.0
infeng Dec 12, 2018
dd362b6
feat: set viewer min height in inline mode
infeng Apr 10, 2019
135de79
Fix error due to preventing default wheel action
Apr 10, 2019
64f78e9
feat: set viewer min height in inline mode
infeng Apr 10, 2019
262439e
Merge remote-tracking branch 'upstream/master'
Apr 11, 2019
22f61fb
Change event type from 'wheel' to 'mousewheel'
Apr 11, 2019
e9c5a98
Merge pull request #55 from adred8/bugfix/wheel-passive-listener
infeng Apr 11, 2019
e54d7ab
docs: update
infeng Apr 11, 2019
f4681bb
2.8.1
infeng Apr 11, 2019
eac3639
Upgrade packages using "npm audit fix"
Apr 11, 2019
6f98e55
Merge pull request #56 from adred8/bugfix/fix-package-vulnerabilities
infeng Apr 11, 2019
baed192
image-loop #comment Add switch for image loop.
May 21, 2019
43389a2
Merge pull request #61 from justinzzy/image-loop
infeng May 21, 2019
1219419
2.9.0
infeng May 21, 2019
80131cc
2.9.1
infeng May 23, 2019
0763038
feat: add disableMouseZoom
infeng Aug 1, 2019
93d2733
chore: update tslint
infeng Aug 1, 2019
69d3ec7
fix: error in ssr
infeng Aug 1, 2019
d02032d
chore: tslint error
infeng Aug 1, 2019
4f55a55
feat: mousewheel change to wheel
infeng Aug 1, 2019
aab54fa
2.10.0
infeng Aug 1, 2019
266d59b
fix: right mouse button trigger move
infeng Aug 6, 2019
87b9045
fix: do not use current props when handle activeIndex change
infeng Aug 16, 2019
1c89b7f
2.10.1
infeng Aug 16, 2019
6170f93
2.10.2
infeng Aug 16, 2019
df4103b
chore: add prepublish
infeng Aug 16, 2019
09ecbc2
refactor: hooks
infeng Aug 29, 2019
e286bde
refactor: hooks
infeng Sep 16, 2019
288d700
chore: remove backup copy
infeng Sep 16, 2019
5a39847
fix: activeIndex error
infeng Sep 16, 2019
e5c30aa
feat: reduce render times
infeng Sep 17, 2019
82b6218
fix: test error
infeng Sep 17, 2019
74b8edb
feat: add downloadInNewWindow
infeng Sep 17, 2019
d0a8f04
feat: support custom css class
infeng Oct 16, 2019
003c4f8
2.11.0
infeng Oct 16, 2019
4dd7dc0
fix: keydown event should be triggered during the capture phase
infeng Oct 17, 2019
a2906f7
2.11.1
infeng Oct 17, 2019
92dfb59
Merge branch 'master' into 3.0
infeng Oct 17, 2019
896364b
fix: not working when resize window
infeng Oct 17, 2019
feb9419
chore: github pages move to gh-pages branch
infeng Oct 18, 2019
7358da6
Merge branch 'master' into 3.0
infeng Oct 18, 2019
297f85f
fix: error in ssr
infeng Oct 18, 2019
e88b0a5
feat: new build tool
infeng Oct 21, 2019
e7e758a
feat: support showTotal
infeng Oct 21, 2019
cab7747
chore: update README.md
infeng Oct 21, 2019
5aead92
3.0.0
infeng Oct 21, 2019
59aaa95
website: new design
infeng Oct 22, 2019
2f6cf11
website: modify output filename
infeng Oct 22, 2019
b7411dd
Fix "TypeError: Super expression must either be null or a function"
miho7031 Oct 30, 2019
f82d907
Merge pull request #85 from miho7031/master
infeng Oct 30, 2019
0ee45ae
3.0.1
infeng Oct 30, 2019
3926eb3
feat: support maxScale and minScale
infeng Nov 26, 2019
651a42d
chore: update README.md
infeng Nov 26, 2019
aab1954
3.1.0
infeng Nov 26, 2019
ec5c13d
chore(deps): bump handlebars from 4.0.11 to 4.5.3
dependabot[bot] Dec 27, 2019
917cae9
Merge pull request #94 from infeng/dependabot/npm_and_yarn/handlebars…
infeng Dec 29, 2019
901d4aa
chore: fix lint invalid
Feb 14, 2020
d97e7f7
feat: extract css make ssr work
Mar 1, 2020
fd23712
3.2.0
Mar 1, 2020
38a3b64
fix: breadking change in 3.2.0
Mar 5, 2020
e7388f3
3.2.1
Mar 5, 2020
eeabf6e
chore(deps): bump acorn from 5.7.1 to 5.7.4
dependabot[bot] Mar 13, 2020
89e25e3
Merge pull request #99 from infeng/dependabot/npm_and_yarn/acorn-5.7.4
infeng Mar 15, 2020
1d05e53
chore(deps): bump acorn from 6.4.0 to 6.4.1 in /ssr-test
dependabot[bot] Apr 4, 2020
4806e94
Merge pull request #101 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Apr 10, 2020
5ee084a
fix: not reload img after change images
infeng Jun 22, 2020
89bff34
3.2.2
infeng Jun 22, 2020
e9799cf
chore(deps): bump lodash from 4.17.15 to 4.17.19 in /ssr-test
dependabot[bot] Jul 17, 2020
1dfc6dd
chore(deps): bump elliptic from 6.5.2 to 6.5.3 in /ssr-test
dependabot[bot] Jul 31, 2020
abca684
Update README.md
Duanruilong Aug 25, 2020
7e46857
chore(deps): bump yargs-parser from 13.1.1 to 13.1.2 in /ssr-test
dependabot[bot] Sep 11, 2020
3d1a7fc
update README
gromov-io Sep 30, 2020
a67cb29
Merge pull request #120 from Duanruilong/patch-1
infeng Nov 26, 2020
6c3abaa
Merge pull request #114 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Nov 26, 2020
7c9a755
Merge pull request #116 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Nov 26, 2020
62419be
Merge pull request #121 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Nov 26, 2020
4296b64
chore(deps): bump ini from 1.3.5 to 1.3.7
dependabot[bot] Dec 10, 2020
1d92173
chore(deps): bump elliptic from 6.5.3 to 6.5.4 in /ssr-test
dependabot[bot] Mar 9, 2021
d0eb755
Merge pull request #136 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Mar 19, 2021
9230c50
Merge pull request #126 from infeng/dependabot/npm_and_yarn/ini-1.3.7
infeng Mar 19, 2021
bdd64fb
Merge pull request #123 from gromov-io/patch-1
infeng Mar 19, 2021
a9b733b
chore(deps): bump y18n from 3.2.1 to 3.2.2
dependabot[bot] Mar 30, 2021
d8197b0
chore(deps): bump y18n from 4.0.0 to 4.0.1 in /ssr-test
dependabot[bot] Mar 30, 2021
fcf33a6
chore(deps): bump ssri from 6.0.1 to 6.0.2 in /ssr-test
dependabot[bot] Apr 30, 2021
76ef9c3
chore(deps): bump merge from 1.2.0 to 1.2.1
dependabot[bot] May 4, 2021
569c019
chore(deps): bump ua-parser-js from 0.7.20 to 0.7.28
dependabot[bot] May 6, 2021
939e02f
chore(deps): bump handlebars from 4.5.3 to 4.7.7
dependabot[bot] May 6, 2021
0efd0ba
chore(deps): bump hosted-git-info from 2.7.1 to 2.8.9
dependabot[bot] May 9, 2021
56f0938
chore(deps): bump lodash from 4.17.19 to 4.17.21 in /ssr-test
dependabot[bot] May 10, 2021
97b839e
Merge pull request #148 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng May 11, 2021
49e8aaf
Merge pull request #147 from infeng/dependabot/npm_and_yarn/hosted-gi…
infeng May 11, 2021
141f031
Merge pull request #146 from infeng/dependabot/npm_and_yarn/handlebar…
infeng May 11, 2021
e146118
Merge pull request #144 from infeng/dependabot/npm_and_yarn/ua-parser…
infeng May 11, 2021
9b6c695
Merge pull request #143 from infeng/dependabot/npm_and_yarn/merge-1.2.1
infeng May 11, 2021
5cc10b6
Merge pull request #142 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng May 11, 2021
ca8d747
Merge pull request #138 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng May 11, 2021
00fd377
Merge pull request #137 from infeng/dependabot/npm_and_yarn/y18n-3.2.2
infeng May 11, 2021
df52a6d
chore(deps): bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 10, 2021
30af26e
chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /ssr-test
dependabot[bot] Aug 11, 2021
7326946
chore(deps): bump tmpl from 1.0.4 to 1.0.5
dependabot[bot] Sep 20, 2021
d7a243a
Merge pull request #153 from infeng/dependabot/npm_and_yarn/tmpl-1.0.5
infeng Oct 21, 2021
ec54e5a
Merge pull request #151 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Oct 21, 2021
3f37ab1
Merge pull request #150 from infeng/dependabot/npm_and_yarn/path-pars…
infeng Oct 21, 2021
1d7f810
add total name
Nov 13, 2021
3ed1d7f
Merge pull request #156 from ricardonas/127-total-name
infeng Nov 18, 2021
1ad755d
chore(deps): bump ajv from 6.12.0 to 6.12.6 in /ssr-test
dependabot[bot] Feb 12, 2022
07f20d5
chore(deps): bump moment from 2.24.0 to 2.29.2
dependabot[bot] Apr 8, 2022
36f7616
Merge pull request #163 from infeng/dependabot/npm_and_yarn/moment-2.…
infeng Apr 18, 2022
dd663d2
Merge pull request #161 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Apr 18, 2022
ca1e7bf
chore(deps): bump async from 2.6.1 to 2.6.4
dependabot[bot] Apr 18, 2022
982d2b9
Update README.md
ventroninformatica May 11, 2022
23cafc2
Merge pull request #167 from ventroninformatica/patch-1
infeng May 17, 2022
4e6a24a
Merge pull request #165 from infeng/dependabot/npm_and_yarn/async-2.6.4
infeng May 17, 2022
43a319e
chore(deps): bump eventsource from 1.0.7 to 1.1.1
dependabot[bot] Jun 1, 2022
f3465e6
Merge pull request #168 from infeng/dependabot/npm_and_yarn/eventsour…
infeng Jun 7, 2022
7edaf0b
chore(deps): bump terser from 4.3.9 to 4.8.1
dependabot[bot] Jul 21, 2022
cd1b6dd
Merge pull request #171 from infeng/dependabot/npm_and_yarn/terser-4.8.1
infeng Aug 4, 2022
2ed654c
chore(deps): bump terser from 4.6.4 to 4.8.1 in /ssr-test
dependabot[bot] Aug 4, 2022
fda505c
chore(deps): bump moment from 2.29.2 to 2.29.4
dependabot[bot] Aug 4, 2022
016266a
Merge pull request #170 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Aug 4, 2022
e951816
Merge pull request #173 from infeng/dependabot/npm_and_yarn/moment-2.…
infeng Aug 4, 2022
cc1308c
chore(deps): bump css-what from 2.1.0 to 2.1.3
dependabot[bot] Oct 4, 2022
ea1f2cd
chore(deps): bump loader-utils and webpack-cli in /ssr-test
dependabot[bot] Nov 13, 2022
fd1655d
chore(deps): bump loader-utils and html-webpack-plugin
dependabot[bot] Nov 21, 2022
462d417
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Dec 2, 2022
399a91d
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 in /ssr-test
dependabot[bot] Dec 4, 2022
6fb96bd
chore(deps): bump qs from 6.5.2 to 6.5.3
dependabot[bot] Dec 7, 2022
90db3bd
chore(deps): bump minimist and mkdirp
dependabot[bot] Mar 1, 2023
b44435f
chore(deps): bump minimist and mkdirp in /ssr-test
dependabot[bot] Mar 1, 2023
b212aa3
Merge pull request #196 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Jan 2, 2025
6a968b1
Merge pull request #195 from infeng/dependabot/npm_and_yarn/minimist-…
infeng Jan 2, 2025
192b999
chore(deps-dev): bump elliptic from 6.5.1 to 6.6.1
dependabot[bot] Jan 2, 2025
f801327
Merge pull request #181 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Jan 2, 2025
6612e62
Merge pull request #183 from infeng/dependabot/npm_and_yarn/decode-ur…
infeng Jan 2, 2025
d70275c
Merge pull request #186 from infeng/dependabot/npm_and_yarn/qs-6.5.3
infeng Jan 2, 2025
18c368e
Merge pull request #179 from infeng/dependabot/npm_and_yarn/css-what-…
infeng Jan 2, 2025
366a78d
chore(deps): bump path-to-regexp and express in /ssr-test
dependabot[bot] Jan 2, 2025
32deb1f
Merge branch 'master' into dependabot/npm_and_yarn/loader-utils-and-h…
infeng Jan 2, 2025
313ab6f
Merge pull request #182 from infeng/dependabot/npm_and_yarn/loader-ut…
infeng Jan 2, 2025
eafd9b2
Merge pull request #184 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Jan 2, 2025
79c1b87
chore(deps): bump express from 4.17.1 to 4.21.2
dependabot[bot] Jan 2, 2025
5d686b7
Merge pull request #209 from infeng/dependabot/npm_and_yarn/ssr-test/…
infeng Jan 2, 2025
acf914b
Merge pull request #214 from infeng/dependabot/npm_and_yarn/elliptic-…
infeng Jan 2, 2025
a07d99d
Merge pull request #215 from infeng/dependabot/npm_and_yarn/express-4…
infeng Jan 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
node_modules/
dist/
lib/
.DS_STORE
.DS_STORE
coverage
pages-build
client-dist
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js

sudo: false

node_js:
- "8"

script:
- npm install codecov -g
- npm run lint
- npm run test
after_success:
- codecov
103 changes: 77 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# react-viewer

[![NPM version][npm-image]][npm-url]
[![NPM version][npm-image]][npm-url] [![](https://travis-ci.org/infeng/react-viewer.svg?branch=master)](https://travis-ci.org/infeng/react-viewer) [![codecov](https://codecov.io/gh/infeng/react-viewer/branch/master/graph/badge.svg)](https://codecov.io/gh/infeng/react-viewer)
> react image viewer.

## Introduction

Because i can`t comfortable use [viewerjs](https://github.com/fengyuanchen/viewerjs) in react, so i create react-viewer to replace it.
Because I can`t be comfortable using [viewerjs](https://github.com/fengyuanchen/viewerjs) in react, so I created react-viewer to replace it.

## Installation

> react >= 16.8.0 | react-dom >= 16.8.0

```bash
npm install react-viewer --save
```
Expand All @@ -18,32 +20,50 @@ npm install react-viewer --save
```javascript
import * as React from 'react';
import Viewer from 'react-viewer';
import 'react-viewer/dist/index.css';

class App extends React.Component<any, any> {
constructor() {
super();

this.state = {
visible: false,
};
}

render() {
return (
<div>
<button onClick={() => { this.setState({ visible: !this.state.visible }); } }>show</button>
<Viewer
visible={this.state.visible}
onClose={() => { this.setState({ visible: false }); } }
images={[{src: '', alt: ''}]}
/>
</div>
);
}

function App() {
const [ visible, setVisible ] = React.useState(false);

return (
<div>
<button onClick={() => { setVisible(true); } }>show</button>
<Viewer
visible={visible}
onClose={() => { setVisible(false); } }
images={[{src: '', alt: ''}]}
/>
</div>
);
}
```

## Server Side (NextJS)

```
import React, { FC } from 'react'
import dynamic from 'next/dynamic'

const ReactViewer = dynamic(
() => import('react-viewer'),
{ ssr: false }
)

export const Viewer: FC = () => {
return (
<ReactViewer
visible={true}
onClose={() => {}}
images={[{src: ''}]}
/>
)
}

export default Viewer
```

## Server Side rest..
I'm sorry, ssr is not currently supported in `3.x`, it will be fixed in `4.0`.

## Props

| props | type | default | description | required |
Expand All @@ -69,6 +89,22 @@ class App extends React.Component<any, any> {
| changeable | boolean | true | wheather to show change button | false |
| customToolbar | (defaultToolbarConfigs: [ToolbarConfig](#toolbarconfig)[]) => ToolbarConfig[] | - | customer toolbar | false |
| zoomSpeed | number | 0.05 | zoom speed | false |
| defaultSize | [ViewerImageSize](#viewerimagesize) | - | default image size | false |
| defaultImg | [viewerdefaultimg](#viewerimagesize) | - | if load img failed, show default img | false |
| disableKeyboardSupport | boolean | false | disable keyboard support | false |
| noResetZoomAfterChange | boolean | false | preserve zoom after image change | false |
| noLimitInitializationSize | boolean | false | no limit image initialization size | false |
| defaultScale | number | 1 | set default scale | false |
| onChange | (activeImage: [ImageDecorator](#imagedecorator), index: number) => void | - | callback when image change | false |
| loop | boolean | true | whether enable image loop | false |
| disableMouseZoom | boolean | false | whether disable mouse zoom | false |
| downloadInNewWindow | boolean | false | whether to download in a new window | false |
| className | string | - | customized CSS class | false |
| showTotal | boolean | true | whether to display the total number and range | false |
| totalName | string | 'of' | total image separator name | false |
| maxScale | number | - | maximum scaling | false |
| minScale | number | 0.1 | minimum scaling | false |
| exportFileName | string | 'exportFile' | customize download's filename | false |

### ImageDecorator

Expand All @@ -77,6 +113,22 @@ class App extends React.Component<any, any> {
| src | string | - | image source | true |
| alt | string | - | image description | false |
| downloadUrl | string | - | image downlaod url | false |
| defaultSize | [ViewerImageSize](#viewerimagesize) | - | image size | false |

### ViewerImageSize

| props | type | default | description | required |
|-------------|--------------|---------|-----------------------------|----------|
| width | number | - | image width | true |
| height | number | - | image height | true |

### ViewerDefaultImg

| props | type | default | description | required |
|-------------|--------------|---------|-----------------------------|----------|
| src | number | - | image source | true |
| width | number | - | image width | false |
| height | number | - | image height | false |

### ToolbarConfig

Expand All @@ -97,7 +149,6 @@ class App extends React.Component<any, any> {
- `Ctrl + ←`: Rotate left the image.
- `Ctrl + →`: Rotate right the image.


## License

MIT
Expand Down
1 change: 0 additions & 1 deletion demo/images/fork_me_ribbon.svg

This file was deleted.

55 changes: 34 additions & 21 deletions demo/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ ul, li {
background-color: #0074d9;
}

.navbar-fixed-top {
position: fixed;
top: 0;
}

.img-fork {
position: absolute;
width: 130px;
Expand All @@ -35,33 +30,44 @@ ul, li {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
margin-left: auto;
display: flex;
align-items: center;
height: 100%;
}

.navbar-brand {
color: white;
font-size: 2rem;
line-height: @navbarHeight;
margin-right: 24px;
}

.bagde {
margin-left: 6px;
display: flex;
align-items: center;
}

.github {
position: absolute;
right: 15px;
}

.container {
top: 50px;
padding: 2em;
padding: 1.5em 2em 2em 2em;
}

.title {
font-size: 3rem;
font-weight: bold;
border-bottom: 1px solid #eee;
margin-bottom: 1.5rem;
.wrap {
display: flex;
}

.img-list-wrap {
flex: 1;
}

.img-list {
display: flex;
width: 640px;
height: 500px;
margin: 0 auto;
justify-content: center;
justify-content: flex-start;

&.hide {
display: none;
Expand Down Expand Up @@ -101,14 +107,21 @@ ul, li {
}
.inline-container {
display: none;
width: 600px;
height: 400px;
margin: 0 auto;
max-width: 600px;
// height: 400px;

&.show {
display: block;
}
}
.options {
margin-top: 12px;
width: 100%;
max-width: 250px;
margin-right: 48px;
}
.options-list {
margin-top: 12px;
height: 440px;
overflow: auto;
}
Loading