1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Image manager: cleaned up style changes, dark mode support

- Updated tab handling to be smarter on initial tab selection, to first
  target non-hidden tab panels where they may be handled server-side.
- Extracted contained search box handling styles to _forms.scss, after
  merging with image-manager-specific styles since this is only usage of
  contained variant.
- Aligned focus handling on image manager UI elements.
This commit is contained in:
Dan Brown
2023-05-29 15:50:36 +01:00
parent 948e95e1ad
commit f5ef52ca59
5 changed files with 71 additions and 77 deletions

View File

@ -70,7 +70,8 @@ export class Tabs extends Component {
}
activate() {
this.show(this.panels[0].id);
const panelToShow = this.panels.find(p => !p.hasAttribute('hidden')) || this.panels[0];
this.show(panelToShow.id);
this.tabList.toggleAttribute('hidden', false);
}