mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
📱 Fix settings pannels height
This commit is contained in:
@@ -1,18 +1,23 @@
|
||||
import { ActionIcon, Title, Tooltip, Drawer, Tabs } from '@mantine/core';
|
||||
import { ActionIcon, Title, Tooltip, Drawer, Tabs, ScrollArea } from '@mantine/core';
|
||||
import { useHotkeys } from '@mantine/hooks';
|
||||
import { useState } from 'react';
|
||||
import { IconSettings } from '@tabler/icons';
|
||||
import AdvancedSettings from './AdvancedSettings';
|
||||
import CommonSettings from './CommonSettings';
|
||||
import Credits from './Credits';
|
||||
|
||||
function SettingsMenu(props: any) {
|
||||
return (
|
||||
<Tabs grow>
|
||||
<Tabs.Tab data-autofocus label="Common">
|
||||
<CommonSettings />
|
||||
<ScrollArea style={{ height: '78vh' }} offsetScrollbars>
|
||||
<CommonSettings />
|
||||
</ScrollArea>
|
||||
</Tabs.Tab>
|
||||
<Tabs.Tab label="Customizations">
|
||||
<AdvancedSettings />
|
||||
<ScrollArea style={{ height: '78vh' }} offsetScrollbars>
|
||||
<AdvancedSettings />
|
||||
</ScrollArea>
|
||||
</Tabs.Tab>
|
||||
</Tabs>
|
||||
);
|
||||
@@ -26,13 +31,14 @@ export function SettingsMenuButton(props: any) {
|
||||
<>
|
||||
<Drawer
|
||||
size="xl"
|
||||
padding="xl"
|
||||
padding="lg"
|
||||
position="right"
|
||||
title={<Title order={3}>Settings</Title>}
|
||||
title={<Title order={5}>Settings</Title>}
|
||||
opened={props.opened || opened}
|
||||
onClose={() => setOpened(false)}
|
||||
>
|
||||
<SettingsMenu />
|
||||
<Credits />
|
||||
</Drawer>
|
||||
<ActionIcon
|
||||
variant="default"
|
||||
|
||||
Reference in New Issue
Block a user