mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 11:02:27 +08:00
feat(rtl): reposition buttons for read-only language change
This commit is contained in:
parent
c217d1c037
commit
9ced699751
@ -81,7 +81,7 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {
|
|||||||
const noteId = this.noteContext?.noteId;
|
const noteId = this.noteContext?.noteId;
|
||||||
if (
|
if (
|
||||||
loadResults.isNoteReloaded(noteId) ||
|
loadResults.isNoteReloaded(noteId) ||
|
||||||
loadResults.getAttributeRows().find((attr) => attr.type === "label" && attr.name === "cssClass" && attributeService.isAffecting(attr, this.noteContext?.note))
|
loadResults.getAttributeRows().find((attr) => attr.type === "label" && ["cssClass", "language"].includes(attr.name ?? "") && attributeService.isAffecting(attr, this.noteContext?.note))
|
||||||
) {
|
) {
|
||||||
this.refresh();
|
this.refresh();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user