� Module styling

This commit is contained in:
Aj - Thomas
2022-05-16 15:55:22 +02:00
committed by ajnart
parent 20a37b678f
commit 8392dcef20
5 changed files with 22 additions and 17 deletions

View File

@@ -5,7 +5,7 @@ import { useConfig } from '../../tools/state';
import { serviceItem } from '../../tools/types';
import AppShelfMenu from './AppShelfMenu';
const AppShelf = () => {
const AppShelf = (props: any) => {
const { config } = useConfig();
return (

View File

@@ -73,6 +73,7 @@ export default function SearchBar(props: any) {
target={
<Group direction="row">
<TextInput
width={'100%'}
variant="filled"
icon={icon}
ref={textInput}

View File

@@ -13,16 +13,7 @@ export default function ModuleWrapper(props: any) {
return null;
}
return (
<Card
hidden={!isShown}
mx="sm"
radius="lg"
shadow="sm"
style={{
// Make background color of the card depend on the theme
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : 'white',
}}
>
<Card hidden={!isShown} mx="sm" withBorder radius="lg" shadow="sm">
<module.component />
</Card>
);