adjust registration form width on mobile (#3274)

Co-authored-by: Rigel Kent <sendmemail@rigelk.eu>
pull/3363/head
test2a 2020-11-25 20:27:10 +05:30 committed by GitHub
parent d07b2944db
commit 832a12b0e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 6 deletions

View File

@ -20,7 +20,7 @@
<div class="input-group">
<input
type="text" id="username" i18n-placeholder placeholder="Example: jane_doe"
type="text" id="username" i18n-placeholder="Username choice placeholder in the registration form" placeholder="e.g. jane_doe"
formControlName="username" class="form-control" [ngClass]="{ 'input-error': formErrors['username'] }"
>
<div class="input-group-append">

View File

@ -20,6 +20,10 @@
&.register-form {
width: 450px;
@media screen and (max-width: $mobile-view) {
width: 100%;
}
}
&.instance-information {
@ -35,6 +39,9 @@
@media screen and (max-width: 1500px) {
width: 450px;
}
@media screen and (max-width: $mobile-view) {
width: 100%;
}
ngb-accordion ::ng-deep {
.btn {
@ -43,10 +50,6 @@
}
}
}
@media screen and (max-width: $mobile-view) {
width: auto;
}
}
}
@ -64,7 +67,6 @@
input:not([type=submit]) {
@include peertube-input-text(400px);
display: block;
&#username,
@ -74,10 +76,19 @@ input:not([type=submit]) {
}
}
@media screen and (max-width: $mobile-view) {
.form-group-terms,
.input-group,
input:not([type=submit]) {
width: 100%;
}
}
input[type=submit],
button {
@include peertube-button;
@include orange-button;
}
.name-information {

View File

@ -121,6 +121,7 @@
min-height: $button-height;
padding-top: 0;
padding-bottom: 0;
flex-wrap: nowrap;
.input-group-text{
font-size: 14px;