Style fixes
This commit is contained in:
parent
cf4f80c82b
commit
0d9224bc09
2 changed files with 25 additions and 21 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -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),
|
||||||
];
|
];
|
||||||
|
|
Reference in a new issue