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

Fix outline on long press #289

Merged
merged 3 commits into from
Nov 4, 2019
Merged
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
19 changes: 12 additions & 7 deletions src/app/files/files.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class FilesComponent {
private service: AppService,
private router: Router,
private jobService: JobService) {
this.showLoader();
this.currentFolder = '/';
this.openFolder(this.currentFolder);
}
Expand All @@ -42,13 +43,7 @@ export class FilesComponent {

public openFolder(folderPath: string): void {
setTimeout(() => {
this.spinner.show(undefined, {
bdColor: '#353b48',
color: '#f5f6fa',
size: 'medium',
type: 'pacman',
fullScreen: false
});
this.showLoader();
this.folderContent = null;
this.filesService.getFolder(folderPath).then(
(data) => {
Expand Down Expand Up @@ -95,4 +90,14 @@ export class FilesComponent {
this.openFolder(this.currentFolder);
}, 300);
}

private showLoader(): void {
this.spinner.show(undefined, {
bdColor: '#353b48',
color: '#f5f6fa',
size: 'medium',
type: 'pacman',
fullScreen: false
});
}
}
9 changes: 9 additions & 0 deletions src/assets/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,12 @@ select {
border: none;
outline: none;
}

div:focus,
a:focus,
span:focus,
td:focus,
p:focus,
img:focus {
outline: 0;
}