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:
@@ -95,7 +95,10 @@ export class NotesViewState {
|
|||||||
/** A tag could have changed its relationships, so we need to reload the filter */
|
/** A tag could have changed its relationships, so we need to reload the filter */
|
||||||
this.reloadNotesDisplayOptions();
|
this.reloadNotesDisplayOptions();
|
||||||
this.reloadNotes();
|
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 */
|
/** Tag title could have changed */
|
||||||
this.reloadPanelTitle();
|
this.reloadPanelTitle();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.no-tags-placeholder {
|
.no-tags-placeholder {
|
||||||
padding: 0px 12px;
|
padding: 0px 14px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
margin-top: -5px;
|
margin-top: -5px;
|
||||||
|
|||||||
@@ -99,7 +99,7 @@
|
|||||||
"react-dnd-touch-backend": "^14.1.1"
|
"react-dnd-touch-backend": "^14.1.1"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"app/*.{js,ts,jsx,tsx}": "eslint --cache --fix",
|
"app/**/*.{js,ts,jsx,tsx}": "eslint --cache --fix",
|
||||||
"app/*.{js,ts,jsx,tsx,css,md}": "prettier --write"
|
"app/**/*.{js,ts,jsx,tsx,css,md}": "prettier --write"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user