diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-11 16:07:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-11 16:18:42 +0200 |
commit | 52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4 (patch) | |
tree | 887d2b6106548ad23cf016d82baf1977198027d9 /client/src/app/shared/shared-forms/select/select-shared.component.scss | |
parent | 3d25d5de33d8aa0ba00d7514522b25d22bf0e0a1 (diff) | |
download | PeerTube-52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4.tar.gz PeerTube-52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4.tar.zst PeerTube-52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4.zip |
Use ng select for multiselect
Diffstat (limited to 'client/src/app/shared/shared-forms/select/select-shared.component.scss')
-rw-r--r-- | client/src/app/shared/shared-forms/select/select-shared.component.scss | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-forms/select/select-shared.component.scss b/client/src/app/shared/shared-forms/select/select-shared.component.scss new file mode 100644 index 000000000..0b4c6b784 --- /dev/null +++ b/client/src/app/shared/shared-forms/select/select-shared.component.scss | |||
@@ -0,0 +1,32 @@ | |||
1 | @import '_variables'; | ||
2 | @import '_mixins'; | ||
3 | |||
4 | $form-base-input-width: auto; | ||
5 | |||
6 | ng-select { | ||
7 | width: $form-base-input-width; | ||
8 | |||
9 | @media screen and (max-width: $form-base-input-width) { | ||
10 | width: 100%; | ||
11 | } | ||
12 | } | ||
13 | |||
14 | ng-select ::ng-deep { | ||
15 | .ng-value-container { | ||
16 | max-height: 100px; | ||
17 | overflow-y: auto; | ||
18 | overflow-x: hidden; | ||
19 | } | ||
20 | |||
21 | // make sure the image is vertically adjusted | ||
22 | .ng-value-label img { | ||
23 | position: relative; | ||
24 | top: -1px; | ||
25 | } | ||
26 | |||
27 | img { | ||
28 | border-radius: 50%; | ||
29 | height: 20px; | ||
30 | width: 20px; | ||
31 | } | ||
32 | } | ||