[ADF-1995] [Mobile] Menu button is not displayed - portrait orientation

This commit is contained in:
Eugenio Romano
2017-11-22 21:48:36 +00:00
parent 729a8b6bde
commit d7b790f2bb
3 changed files with 18 additions and 5 deletions

View File

@@ -3,6 +3,13 @@
$minimumAppWidth: 320px;
$toolbarHeight: 64px;
@media screen and ($mat-small) {
adf-search-bar {
width: 200px;
}
}
.adf-app-layout {
display: block;
min-width: $minimumAppWidth;

View File

@@ -6,7 +6,14 @@
$mat-menu-border-radius: 2px !default;
.adf-search-container {
overflow: hidden;
overflow: hidden !important;
adf-search-bar {
width: 200px;
}
}
.adf-search-button {
left: -13px;
}
.adf {
@@ -39,7 +46,6 @@
background-color: mat-color($background, card);
border-radius: $mat-menu-border-radius;
@media screen and ($mat-small) {
width: 160px;
white-space: nowrap;

View File

@@ -29,8 +29,8 @@ import 'rxjs/add/operator/distinctUntilChanged';
styleUrls: ['./search-control.component.scss'],
animations: [
trigger('transitionMessages', [
state('active', style({ transform: 'translateX(0%)' })),
state('inactive', style({ transform: 'translateX(83%)', overflow: 'hidden' })),
state('active', style({ transform: 'translateX(0%)', 'margin-left': '13px' })),
state('inactive', style({ transform: 'translateX(81%)'})),
state('no-animation', style({ transform: 'translateX(0%)', width: '100%' })),
transition('inactive => active',
animate('300ms cubic-bezier(0.55, 0, 0.55, 0.2)')),
@@ -80,7 +80,7 @@ export class SearchControlComponent implements OnInit, OnDestroy {
private focusSubject = new Subject<FocusEvent>();
constructor(public authService: AuthenticationService,
private thumbnailService: ThumbnailService) {
private thumbnailService: ThumbnailService) {
this.toggleSearch.asObservable().debounceTime(100).subscribe(() => {
if (this.expandable) {