Fix ng-select width
This commit is contained in:
parent
d89fcd1e5e
commit
48586fe070
5 changed files with 14 additions and 22 deletions
|
@ -51,21 +51,21 @@ exports.config = {
|
|||
{
|
||||
browserName: 'Chrome',
|
||||
device: 'Google Nexus 6',
|
||||
realMobile: 'true',
|
||||
real_mobile: 'true',
|
||||
os_version: '5.0',
|
||||
name: 'Latest Chrome Android'
|
||||
},
|
||||
{
|
||||
browserName: 'Safari',
|
||||
device: 'iPhone 8',
|
||||
realMobile: 'true',
|
||||
os_version: '12',
|
||||
device: 'iPhone 8 Plus',
|
||||
real_mobile: 'true',
|
||||
os_version: '11',
|
||||
name: 'Safari iPhone'
|
||||
},
|
||||
{
|
||||
browserName: 'Safari',
|
||||
device: 'iPad 7th',
|
||||
realMobile: 'true',
|
||||
real_mobile: 'true',
|
||||
os_version: '13',
|
||||
name: 'Safari iPad'
|
||||
}
|
||||
|
|
|
@ -208,6 +208,8 @@ describe('Videos workflow', () => {
|
|||
|
||||
await playerPage.waitUntilPlayerWrapper()
|
||||
|
||||
console.log('Will set %s and %s tokens in local storage.', accessToken, refreshToken)
|
||||
|
||||
await browser.executeScript(`window.localStorage.setItem('access_token', '${accessToken}');`)
|
||||
await browser.executeScript(`window.localStorage.setItem('refresh_token', '${refreshToken}');`)
|
||||
await browser.executeScript(`window.localStorage.setItem('token_type', 'Bearer');`)
|
||||
|
|
|
@ -42,12 +42,11 @@ input[type=checkbox] {
|
|||
@include peertube-select-container($form-base-input-width);
|
||||
}
|
||||
|
||||
ng-select {
|
||||
@include ng-select($form-base-input-width);
|
||||
}
|
||||
|
||||
ng-select,
|
||||
my-select-checkbox {
|
||||
@include ng-select($form-base-input-width);
|
||||
@include responsive-width($form-base-input-width);
|
||||
|
||||
display: block;
|
||||
}
|
||||
|
||||
input[type=submit] {
|
||||
|
|
|
@ -20,7 +20,9 @@ input[type=submit] {
|
|||
}
|
||||
|
||||
my-select-checkbox {
|
||||
@include ng-select(340px);
|
||||
@include responsive-width(340px);
|
||||
|
||||
display: block;
|
||||
}
|
||||
|
||||
.form-group-select {
|
||||
|
|
|
@ -313,17 +313,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
@mixin ng-select ($width) {
|
||||
::ng-deep &.ng-select,
|
||||
::ng-deep .ng-select {
|
||||
width: $width;
|
||||
|
||||
@media screen and (max-width: $width) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin peertube-select-container ($width) {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
|
Loading…
Reference in a new issue