Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centered file upload items on small screens (fixes #7798) #7801

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/resources/resources-add.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
</mat-autocomplete>
<mat-error><planet-form-error-messages [control]="resourceForm.controls.openWhichFile"></planet-form-error-messages></mat-error>
</mat-form-field>
<div class="inner-gaps by-column full-width">
<div class="file-upload inner-gaps by-column full-width">
<label i18n>File Upload:</label>
<planet-file-input (fileChange)="bindFile($event)"></planet-file-input>
<label i18n class="warn-text-color" *ngIf="resourceForm?.errors?.fileTooBig">File size cannot exceed more than 512 MB</label>
Expand Down
5 changes: 5 additions & 0 deletions src/app/resources/resources-add.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@
.form-container {
width: auto;
}

.file-upload{
display: flex;
justify-content: center;
}
}
}
Loading