1
0
Fork 0

Fix ng-select width

This commit is contained in:
Chocobozzz 2020-12-15 11:45:29 +01:00
parent d89fcd1e5e
commit 48586fe070
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
5 changed files with 14 additions and 22 deletions

View File

@ -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'
}

View File

@ -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');`)

View File

@ -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] {

View File

@ -20,7 +20,9 @@ input[type=submit] {
}
my-select-checkbox {
@include ng-select(340px);
@include responsive-width(340px);
display: block;
}
.form-group-select {

View File

@ -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;