mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-03 08:49:50 +01:00
safari fixes
This commit is contained in:
parent
4993d4b00d
commit
e871d4749b
@ -8,3 +8,15 @@ html.browser_firefox, html.browser_edge {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
html.browser_safari {
|
||||||
|
header {
|
||||||
|
.search .fa {
|
||||||
|
left: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left + .search .fa {
|
||||||
|
left: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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>
|
||||||
|
@ -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) {
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user