Skip to content

Commit

Permalink
Fix server list panel height when there are no servers
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1ck committed Mar 25, 2024
1 parent 28862de commit 770720e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modals/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export function AppSettingsModal(props: AppSettingsModalProps) {
validateInputOnChange: true,
});

const [currentServerIndex, setCurrentServerIndex] = useState(0);
const [currentServerIndex, setCurrentServerIndex] = useState(-1);
const { setValues } = form;

useEffect(() => {
Expand Down Expand Up @@ -360,7 +360,7 @@ export function AppSettingsModal(props: AppSettingsModalProps) {
</Tabs.List>

<Tabs.Panel value="servers" pt="md" mih="24rem">
<Flex h="100%" gap="0.5rem">
<Flex h="100%" gap="0.5rem" mih="24rem">
<ServerListPanel form={form} current={currentServerIndex} setCurrent={setCurrentServerIndex} />
{currentServerIndex === -1
? <></>
Expand Down

0 comments on commit 770720e

Please sign in to comment.