Fix CommonJS import, add z-index for sticky subheader, change text in 'logout' tooltip

This commit is contained in:
Michał Romaszkin 2020-06-30 23:34:22 +02:00
parent 88b91e9a37
commit df42a5f243
4 changed files with 7 additions and 5 deletions

View File

@ -17,7 +17,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"allowedCommonJsDependencies": ["papaparse"],
"outputPath": "dist/nkadf",
"index": "src/index.html",
"main": "src/main.ts",

View File

@ -14,8 +14,8 @@
display: flex;
flex-flow: row nowrap;
background-color: white;
z-index: 2000;
box-shadow: 0px 10px 17px -15px rgba(0, 0, 0, 0.88);
z-index: 10;
button {
margin: 1rem 0rem 1rem 1rem;
}

View File

@ -10,7 +10,7 @@ import {
NbLayoutScrollService,
NbScrollPosition,
} from '@nebular/theme';
import * as Papa from 'papaparse';
import { parse } from 'papaparse';
@Component({
selector: 'app-discussion-viewer',
@ -102,7 +102,7 @@ export class DiscussionViewerComponent implements OnInit, OnDestroy {
parseFile(file: File): Promise<{ id: number; name: string }[]> {
return new Promise((resolve, _) => {
Papa.parse(file, {
parse(file, {
header: true,
skipEmptyLines: true,
complete: (result) => {

View File

@ -10,7 +10,10 @@
<nb-action>nkadf</nb-action>
</nb-actions>
<nb-actions>
<nb-action icon="power" (click)="logout()" nbTooltip="Wyloguj"
<nb-action
icon="power"
(click)="logout()"
nbTooltip="Wróć do strony początkowej"
>Wyloguj</nb-action
>
</nb-actions>