mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
🐛 Adjust card wrapper for calendar
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Card, createStyles, MantineThemeColors, useMantineTheme } from '@mantine/core';
|
import { createStyles, MantineThemeColors, useMantineTheme } from '@mantine/core';
|
||||||
import { Calendar } from '@mantine/dates';
|
import { Calendar } from '@mantine/dates';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
@@ -6,6 +6,7 @@ import { useConfigContext } from '../../../../config/provider';
|
|||||||
import { useColorTheme } from '../../../../tools/color';
|
import { useColorTheme } from '../../../../tools/color';
|
||||||
import { isToday } from '../../../../tools/isToday';
|
import { isToday } from '../../../../tools/isToday';
|
||||||
import { CalendarIntegrationType } from '../../../../types/integration';
|
import { CalendarIntegrationType } from '../../../../types/integration';
|
||||||
|
import { HomarrCardWrapper } from '../HomarrCardWrapper';
|
||||||
import { BaseTileProps } from '../type';
|
import { BaseTileProps } from '../type';
|
||||||
import { CalendarDay } from './CalendarDay';
|
import { CalendarDay } from './CalendarDay';
|
||||||
import { MediasType } from './type';
|
import { MediasType } from './type';
|
||||||
@@ -36,7 +37,7 @@ export const CalendarTile = ({ className, module }: CalendarTileProps) => {
|
|||||||
if (!module) return <></>;
|
if (!module) return <></>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card className={className} withBorder p="xs">
|
<HomarrCardWrapper className={className} p={6}>
|
||||||
<Calendar
|
<Calendar
|
||||||
month={month}
|
month={month}
|
||||||
onMonthChange={setMonth}
|
onMonthChange={setMonth}
|
||||||
@@ -63,8 +64,8 @@ export const CalendarTile = ({ className, module }: CalendarTileProps) => {
|
|||||||
renderDay={(date) => (
|
renderDay={(date) => (
|
||||||
<CalendarDay date={date} medias={getReleasedMediasForDate(medias, date)} />
|
<CalendarDay date={date} medias={getReleasedMediasForDate(medias, date)} />
|
||||||
)}
|
)}
|
||||||
></Calendar>
|
/>
|
||||||
</Card>
|
</HomarrCardWrapper>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user