diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-15 11:45:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-15 11:45:29 +0100 |
commit | 48586fe070c2a59e9febb62a7f41ebb384e1d20e (patch) | |
tree | ecf8d719d0c1b18d36a27cb4d3db6b2c1d20c78a /client/src | |
parent | d89fcd1e5efe1f91652a7c9da02a9323dc035f2b (diff) | |
download | PeerTube-48586fe070c2a59e9febb62a7f41ebb384e1d20e.tar.gz PeerTube-48586fe070c2a59e9febb62a7f41ebb384e1d20e.tar.zst PeerTube-48586fe070c2a59e9febb62a7f41ebb384e1d20e.zip |
Fix ng-select width
Diffstat (limited to 'client/src')
3 files changed, 7 insertions, 17 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss index 4c64bd2e0..665247368 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss | |||
@@ -42,12 +42,11 @@ input[type=checkbox] { | |||
42 | @include peertube-select-container($form-base-input-width); | 42 | @include peertube-select-container($form-base-input-width); |
43 | } | 43 | } |
44 | 44 | ||
45 | ng-select { | 45 | ng-select, |
46 | @include ng-select($form-base-input-width); | ||
47 | } | ||
48 | |||
49 | my-select-checkbox { | 46 | my-select-checkbox { |
50 | @include ng-select($form-base-input-width); | 47 | @include responsive-width($form-base-input-width); |
48 | |||
49 | display: block; | ||
51 | } | 50 | } |
52 | 51 | ||
53 | input[type=submit] { | 52 | input[type=submit] { |
diff --git a/client/src/app/shared/shared-user-settings/user-video-settings.component.scss b/client/src/app/shared/shared-user-settings/user-video-settings.component.scss index d6a17703a..2cbd92d41 100644 --- a/client/src/app/shared/shared-user-settings/user-video-settings.component.scss +++ b/client/src/app/shared/shared-user-settings/user-video-settings.component.scss | |||
@@ -20,7 +20,9 @@ input[type=submit] { | |||
20 | } | 20 | } |
21 | 21 | ||
22 | my-select-checkbox { | 22 | my-select-checkbox { |
23 | @include ng-select(340px); | 23 | @include responsive-width(340px); |
24 | |||
25 | display: block; | ||
24 | } | 26 | } |
25 | 27 | ||
26 | .form-group-select { | 28 | .form-group-select { |
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 1231d2c44..10ab44f57 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -313,17 +313,6 @@ | |||
313 | } | 313 | } |
314 | } | 314 | } |
315 | 315 | ||
316 | @mixin ng-select ($width) { | ||
317 | ::ng-deep &.ng-select, | ||
318 | ::ng-deep .ng-select { | ||
319 | width: $width; | ||
320 | |||
321 | @media screen and (max-width: $width) { | ||
322 | width: 100%; | ||
323 | } | ||
324 | } | ||
325 | } | ||
326 | |||
327 | @mixin peertube-select-container ($width) { | 316 | @mixin peertube-select-container ($width) { |
328 | padding: 0; | 317 | padding: 0; |
329 | margin: 0; | 318 | margin: 0; |