feat: dedicated files layout (#1928)

This commit is contained in:
Mo
2022-11-02 11:06:19 -05:00
committed by GitHub
parent 1498cce37f
commit dd821c95e6
18 changed files with 226 additions and 98 deletions

View File

@@ -431,6 +431,15 @@ export class NavigationController
return this.selected_
}
public async setPanelWidthForTag(tag: SNTag, width: number): Promise<void> {
await this.application.mutator.changeAndSaveItem<TagMutator>(tag, (mutator) => {
mutator.preferences = {
...mutator.preferences,
panelWidth: width,
}
})
}
public async setSelectedTag(tag: AnyTag | undefined, { userTriggered } = { userTriggered: false }) {
if (tag && tag.conflictOf) {
this.application.mutator