Style fixes

This commit is contained in:
jeffvli 2023-03-31 06:22:04 -07:00
parent cf4f80c82b
commit 0d9224bc09
2 changed files with 25 additions and 21 deletions

View file

@ -22,6 +22,7 @@ export const SettingsHeader = () => {
}; };
return ( return (
<Flex>
<PageHeader> <PageHeader>
<LibraryHeaderBar> <LibraryHeaderBar>
<Flex <Flex
@ -44,5 +45,6 @@ export const SettingsHeader = () => {
</Flex> </Flex>
</LibraryHeaderBar> </LibraryHeaderBar>
</PageHeader> </PageHeader>
</Flex>
); );
}; };

View file

@ -1,3 +1,4 @@
import isElectron from 'is-electron';
import { useLocation } from 'react-router'; import { useLocation } from 'react-router';
import { AppRoute } from '/@/renderer/router/routes'; import { AppRoute } from '/@/renderer/router/routes';
import { useSidebarRightExpanded, useGeneralSettings, useWindowSettings } from '/@/renderer/store'; import { useSidebarRightExpanded, useGeneralSettings, useWindowSettings } from '/@/renderer/store';
@ -11,6 +12,7 @@ export const useShouldPadTitlebar = () => {
const { windowBarStyle } = useWindowSettings(); const { windowBarStyle } = useWindowSettings();
const conditions = [ const conditions = [
isElectron(),
windowBarStyle === Platform.WEB, windowBarStyle === Platform.WEB,
!(isSidebarExpanded && sideQueueType === 'sideQueue' && !isQueuePage), !(isSidebarExpanded && sideQueueType === 'sideQueue' && !isQueuePage),
]; ];