mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 19:01:40 +00:00
Lint all files
This commit is contained in:
parent
22af76b4d6
commit
30e52ebb54
334 changed files with 76519 additions and 75932 deletions
|
|
@ -5,19 +5,19 @@ import { useSidebarRightExpanded, useGeneralSettings, useWindowSettings } from '
|
|||
import { Platform } from '/@/renderer/types';
|
||||
|
||||
export const useShouldPadTitlebar = () => {
|
||||
const location = useLocation();
|
||||
const isSidebarExpanded = useSidebarRightExpanded();
|
||||
const isQueuePage = location.pathname === AppRoute.NOW_PLAYING;
|
||||
const { sideQueueType } = useGeneralSettings();
|
||||
const { windowBarStyle } = useWindowSettings();
|
||||
const location = useLocation();
|
||||
const isSidebarExpanded = useSidebarRightExpanded();
|
||||
const isQueuePage = location.pathname === AppRoute.NOW_PLAYING;
|
||||
const { sideQueueType } = useGeneralSettings();
|
||||
const { windowBarStyle } = useWindowSettings();
|
||||
|
||||
const conditions = [
|
||||
isElectron(),
|
||||
windowBarStyle === Platform.WEB,
|
||||
!(isSidebarExpanded && sideQueueType === 'sideQueue' && !isQueuePage),
|
||||
];
|
||||
const conditions = [
|
||||
isElectron(),
|
||||
windowBarStyle === Platform.WEB,
|
||||
!(isSidebarExpanded && sideQueueType === 'sideQueue' && !isQueuePage),
|
||||
];
|
||||
|
||||
const shouldPadTitlebar = conditions.every((condition) => condition);
|
||||
const shouldPadTitlebar = conditions.every((condition) => condition);
|
||||
|
||||
return shouldPadTitlebar;
|
||||
return shouldPadTitlebar;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue