Skip to content

Commit

Permalink
Merge branch 'feature/super-modern-subtitle-settings-panel' into feat…
Browse files Browse the repository at this point in the history
…ure/improve-mobile-layout
  • Loading branch information
stonko1994 committed Dec 11, 2024
2 parents cdef5a4 + 86ff8c6 commit 66b3186
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import '../variables';

%ui-settings-panel-item {
line-height: 1.5em;
padding: .5em .7em;
white-space: nowrap;

Expand Down
6 changes: 6 additions & 0 deletions src/ts/components/settingspanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,18 @@ export class SettingsPanel extends Container<SettingsPanelConfig> {
targetPage = this.getRootPage();
}

const currentActivePage = this.activePage;
this.navigateToPage(
targetPage,
this.activePage,
NavigationDirection.Backwards,
!(this.config as SettingsPanelConfig).pageTransitionAnimation,
);

if (currentActivePage.getConfig().removeOnPop) {
this.removeComponent(currentActivePage);
this.updateComponents();
}
}

/**
Expand Down

0 comments on commit 66b3186

Please sign in to comment.