Skip to content

Commit

Permalink
chore: replace inline styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed Sep 12, 2024
1 parent 239c482 commit 83fe4e8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/

.settingsGroups {
width: 240px;
}

.settingsGroups,
.settingsContainer {
height: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
*/
import { observer } from 'mobx-react-lite';

import { Container, Filter, Group, TextPlaceholder, useTranslate } from '@cloudbeaver/core-blocks';
import { Container, Filter, Group, s, TextPlaceholder, useTranslate } from '@cloudbeaver/core-blocks';
import { type ISettingsSource, ROOT_SETTINGS_GROUP, SettingsGroup } from '@cloudbeaver/core-settings';
import { useTreeData, useTreeFilter } from '@cloudbeaver/plugin-navigation-tree';

import { getSettingGroupId } from './getSettingGroupId';
import classes from './Settings.module.css';
import { settingsFilter } from './settingsFilter';
import { SettingsGroups } from './SettingsGroups/SettingsGroups';
import { SettingsList } from './SettingsList';
Expand Down Expand Up @@ -75,10 +76,10 @@ export const Settings = observer<ISettingsProps>(function Settings({ source, acc

return (
<Container gap overflow noWrap>
<Group style={{ height: '100%', width: '240px' }} vertical box keepSize overflow>
<Group className={s(classes, { settingsGroups: true })} vertical box keepSize overflow>
<SettingsGroups treeData={treeData} onClick={handleClick} />
</Group>
<Container style={{ height: '100%' }} overflow vertical gap noWrap>
<Container className={s(classes, { settingsContainer: true })} overflow vertical gap noWrap>
<Container gap keepSize>
<Filter
state={treeFilter}
Expand Down

0 comments on commit 83fe4e8

Please sign in to comment.