Skip to content

Commit

Permalink
Compatibility with Obsidian 0.16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
phibr0 committed Sep 2, 2022
1 parent ae0527d commit cb3066a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "cmdr",
"name": "Commander",
"version": "0.1.2",
"version": "0.1.3",
"minAppVersion": "0.16.0",
"description": "Customize your workspace by adding commands /everywhere/.",
"author": "jsmorabito & phibr0",
Expand Down
6 changes: 3 additions & 3 deletions src/ui/components/settingTabComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ export default function settingTabComponent({ plugin, mobileMode }: { plugin: Co
<button onClick={(): void => {
app.setting.openTabById("appearance");
setTimeout(() => {
//@ts-expect-error
//@ts-expect-error: activeTab contains the currently active Settings Tab.
(app.setting.activeTab.containerEl as HTMLElement).scroll({
behavior: "smooth",
top: 250,
});
//@ts-expect-error
(app.setting.activeTab.containerEl as HTMLElement).querySelectorAll(".setting-item-heading")[1].nextSibling.addClass("cmdr-cta");
//@ts-expect-error: activeTab contains the currently active Settings Tab.
(app.setting.activeTab.containerEl as HTMLElement).querySelectorAll(".setting-item-heading")[1].nextSibling?.nextSibling?.addClass("cmdr-cta");
}, 50);
}} className="mod-cta">{t("Open Appearance Settings")}</button>
</div>
Expand Down

0 comments on commit cb3066a

Please sign in to comment.