fix: tag placeholder align (#819)

* fix: padding in navigation no-tag-placeholder

* fix: lint-staged was disabled

* fix: make findArray typesafe
This commit is contained in:
Laurent Senta
2022-01-24 15:50:41 +01:00
committed by GitHub
parent 829a240f63
commit 86b38e1041
3 changed files with 7 additions and 4 deletions

View File

@@ -95,7 +95,10 @@ export class NotesViewState {
/** A tag could have changed its relationships, so we need to reload the filter */
this.reloadNotesDisplayOptions();
this.reloadNotes();
if (findInArray(tags, 'uuid', this.appState.selectedTag?.uuid)) {
if (
this.appState.selectedTag &&
findInArray(tags, 'uuid', this.appState.selectedTag.uuid)
) {
/** Tag title could have changed */
this.reloadPanelTitle();
}

View File

@@ -31,7 +31,7 @@
}
.no-tags-placeholder {
padding: 0px 12px;
padding: 0px 14px;
font-size: 12px;
opacity: 0.4;
margin-top: -5px;

View File

@@ -99,7 +99,7 @@
"react-dnd-touch-backend": "^14.1.1"
},
"lint-staged": {
"app/*.{js,ts,jsx,tsx}": "eslint --cache --fix",
"app/*.{js,ts,jsx,tsx,css,md}": "prettier --write"
"app/**/*.{js,ts,jsx,tsx}": "eslint --cache --fix",
"app/**/*.{js,ts,jsx,tsx,css,md}": "prettier --write"
}
}