mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Adjust conditionals in a few places
This commit is contained in:
parent
a878875f83
commit
1d074dae2e
3 changed files with 12 additions and 10 deletions
|
|
@ -13,17 +13,17 @@ export const SidebarPlayQueue = () => {
|
|||
const queueRef = useRef<{ grid: AgGridReactType<Song> } | null>(null);
|
||||
const { windowBarStyle } = useWindowSettings();
|
||||
|
||||
const webOrNative = windowBarStyle === Platform.WEB || windowBarStyle === Platform.LINUX;
|
||||
const isWeb = windowBarStyle === Platform.WEB;
|
||||
return (
|
||||
<VirtualGridContainer>
|
||||
{webOrNative && (
|
||||
<Stack mr={webOrNative ? '130px' : undefined}>
|
||||
{isWeb && (
|
||||
<Stack mr={isWeb ? '130px' : undefined}>
|
||||
<PageHeader backgroundColor="var(--titlebar-bg)" />
|
||||
</Stack>
|
||||
)}
|
||||
<Paper
|
||||
display={!webOrNative ? 'flex' : undefined}
|
||||
h={!webOrNative ? '65px' : undefined}
|
||||
display={!isWeb ? 'flex' : undefined}
|
||||
h={!isWeb ? '65px' : undefined}
|
||||
>
|
||||
<PlayQueueListControls
|
||||
tableRef={queueRef}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue