mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-02 10:21:09 -05:00
fix css class handling
This commit is contained in:
@@ -132,7 +132,8 @@ export default class NoteDetailWidget extends TabAwareWidget {
|
||||
const note = this.note;
|
||||
|
||||
if (note) {
|
||||
this.$widget.addClass(note.cssClass);
|
||||
note.getCssClass().then(cssClass => this.$widget.addClass(cssClass));
|
||||
|
||||
this.$widget.addClass(utils.getNoteTypeClass(note.type));
|
||||
this.$widget.addClass(utils.getMimeTypeClass(note.mime));
|
||||
|
||||
|
||||
@@ -596,7 +596,7 @@ export default class TabRowWidget extends BasicWidget {
|
||||
}
|
||||
}
|
||||
|
||||
$tab.addClass(note.cssClass);
|
||||
note.getCssClass().then(cssClass => $tab.addClass(cssClass));
|
||||
$tab.addClass(utils.getNoteTypeClass(note.type));
|
||||
$tab.addClass(utils.getMimeTypeClass(note.mime));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user