mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
🎨 Small styling changes
This commit is contained in:
@@ -12,8 +12,7 @@ export default function ModuleEnabler(props: any) {
|
|||||||
{modules.map((module) => (
|
{modules.map((module) => (
|
||||||
<Checkbox
|
<Checkbox
|
||||||
key={module.title}
|
key={module.title}
|
||||||
size="lg"
|
size="md"
|
||||||
style={{ cursor: 'pointer' }}
|
|
||||||
checked={config.modules?.[module.title]?.enabled ?? false}
|
checked={config.modules?.[module.title]?.enabled ?? false}
|
||||||
label={`${module.title}`}
|
label={`${module.title}`}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import {
|
|||||||
Skeleton,
|
Skeleton,
|
||||||
ScrollArea,
|
ScrollArea,
|
||||||
Center,
|
Center,
|
||||||
Image,
|
|
||||||
} from '@mantine/core';
|
} from '@mantine/core';
|
||||||
import { IconDownload as Download } from '@tabler/icons';
|
import { IconDownload as Download } from '@tabler/icons';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|||||||
@@ -82,8 +82,11 @@ export function MovieRequestModal({
|
|||||||
This request will be automatically approved
|
This request will be automatically approved
|
||||||
</Alert>
|
</Alert>
|
||||||
<Group>
|
<Group>
|
||||||
<Button onClick={() => setOpened(false)}>Cancel</Button>
|
<Button variant="outline" color="gray" onClick={() => setOpened(false)}>
|
||||||
|
Cancel
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
variant="outline"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
askForMedia(MediaType.Movie, result.id, result.title, []);
|
askForMedia(MediaType.Movie, result.id, result.title, []);
|
||||||
}}
|
}}
|
||||||
@@ -137,7 +140,18 @@ export function TvRequestModal({
|
|||||||
const { secondaryColor } = useColorTheme();
|
const { secondaryColor } = useColorTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal onClose={() => setOpened(false)} radius="lg" size="lg" opened={opened}>
|
<Modal
|
||||||
|
onClose={() => setOpened(false)}
|
||||||
|
radius="lg"
|
||||||
|
size="lg"
|
||||||
|
opened={opened}
|
||||||
|
title={
|
||||||
|
<Group>
|
||||||
|
<IconDownload />
|
||||||
|
Ask for {result.name ?? result.originalName ?? 'a TV show'}
|
||||||
|
</Group>
|
||||||
|
}
|
||||||
|
>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Alert
|
<Alert
|
||||||
icon={<IconAlertCircle size={16} />}
|
icon={<IconAlertCircle size={16} />}
|
||||||
@@ -167,8 +181,11 @@ export function TvRequestModal({
|
|||||||
<tbody>{rows}</tbody>
|
<tbody>{rows}</tbody>
|
||||||
</Table>
|
</Table>
|
||||||
<Group>
|
<Group>
|
||||||
<Button onClick={() => setOpened(false)}>Cancel</Button>
|
<Button variant="outline" color="gray" onClick={() => setOpened(false)}>
|
||||||
|
Cancel
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
variant="outline"
|
||||||
disabled={selection.length === 0}
|
disabled={selection.length === 0}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
askForMedia(
|
askForMedia(
|
||||||
|
|||||||
@@ -45,6 +45,20 @@ export default function App(this: any, props: AppProps & { colorScheme: ColorSch
|
|||||||
<MantineProvider
|
<MantineProvider
|
||||||
theme={{
|
theme={{
|
||||||
...theme,
|
...theme,
|
||||||
|
components: {
|
||||||
|
Checkbox: {
|
||||||
|
styles: {
|
||||||
|
input: { cursor: 'pointer' },
|
||||||
|
label: { cursor: 'pointer' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Switch: {
|
||||||
|
styles: {
|
||||||
|
input: { cursor: 'pointer' },
|
||||||
|
label: { cursor: 'pointer' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
primaryColor,
|
primaryColor,
|
||||||
primaryShade,
|
primaryShade,
|
||||||
colorScheme,
|
colorScheme,
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
import { MantineProviderProps } from '@mantine/core';
|
|
||||||
|
|
||||||
//TODO: Migarate this to v5.0
|
|
||||||
// export const styles: MantineProviderProps['styles'] = {
|
|
||||||
// Checkbox: {
|
|
||||||
// input: { cursor: 'pointer' },
|
|
||||||
// label: { cursor: 'pointer' },
|
|
||||||
// },
|
|
||||||
// Switch: {
|
|
||||||
// input: { cursor: 'pointer' },
|
|
||||||
// label: { cursor: 'pointer' },
|
|
||||||
// },
|
|
||||||
// };
|
|
||||||
Reference in New Issue
Block a user