1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-27 17:18:04 +01:00

safari fixes

This commit is contained in:
Kyle Spearrin 2018-04-14 12:52:46 -04:00
parent 4993d4b00d
commit e871d4749b
5 changed files with 24 additions and 7 deletions

View File

@ -8,3 +8,15 @@ html.browser_firefox, html.browser_edge {
} }
} }
*/ */
html.browser_safari {
header {
.search .fa {
left: 25px;
}
.left + .search .fa {
left: 15px;
}
}
}

View File

@ -90,6 +90,10 @@ p.lead {
border-radius: 6px; border-radius: 6px;
} }
input[type="search"] {
-webkit-appearance: textfield;
}
.sr-only { .sr-only {
position: absolute !important; position: absolute !important;
width: 1px !important; width: 1px !important;

View File

@ -1,5 +1,5 @@
<header> <header>
<div class="left"> <div class="left" *ngIf="showLeftHeader">
<app-pop-out [show]="!inSidebar"></app-pop-out> <app-pop-out [show]="!inSidebar"></app-pop-out>
<button type="button" appBlurClick (click)="refresh()" title="{{'refresh' | i18n}}" *ngIf="inSidebar"> <button type="button" appBlurClick (click)="refresh()" title="{{'refresh' | i18n}}" *ngIf="inSidebar">
<i class="fa fa-retweet fa-lg fa-fw"></i> <i class="fa fa-retweet fa-lg fa-fw"></i>

View File

@ -43,7 +43,7 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
searchText: string; searchText: string;
canAutofill = false; canAutofill = false;
inSidebar = false; inSidebar = false;
disableSearch = false; showLeftHeader = false;
loaded = false; loaded = false;
loadedTimeout: number; loadedTimeout: number;
@ -52,12 +52,12 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
private analytics: Angulartics2, private toasterService: ToasterService, private analytics: Angulartics2, private toasterService: ToasterService,
private i18nService: I18nService, private router: Router, private i18nService: I18nService, private router: Router,
private ngZone: NgZone, private broadcasterService: BroadcasterService, private ngZone: NgZone, private broadcasterService: BroadcasterService,
private changeDetectorRef: ChangeDetectorRef, private syncService: SyncService) { private changeDetectorRef: ChangeDetectorRef, private syncService: SyncService) {}
this.inSidebar = popupUtilsService.inSidebar(window);
this.disableSearch = platformUtilsService.isEdge();
}
async ngOnInit() { async ngOnInit() {
this.showLeftHeader = !this.platformUtilsService.isSafari();
this.inSidebar = this.popupUtilsService.inSidebar(window);
this.broadcasterService.subscribe(BroadcasterSubscriptionId, (message: any) => { this.broadcasterService.subscribe(BroadcasterSubscriptionId, (message: any) => {
this.ngZone.run(async () => { this.ngZone.run(async () => {
switch (message.command) { switch (message.command) {

View File

@ -78,7 +78,8 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
} }
async ngOnInit() { async ngOnInit() {
this.showLeftHeader = !(this.popupUtils.inSidebar(window) && this.platformUtilsService.isFirefox()); this.showLeftHeader = !this.platformUtilsService.isSafari() &&
!(this.popupUtils.inSidebar(window) && this.platformUtilsService.isFirefox());
this.stateService.remove('CiphersComponent'); this.stateService.remove('CiphersComponent');
this.broadcasterService.subscribe(ComponentId, (message: any) => { this.broadcasterService.subscribe(ComponentId, (message: any) => {