dark mode improvements

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-02 11:37:11 +02:00
parent 715867678a
commit 1a0d9d9e9d
4 changed files with 9 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ export function ReportAreaChart({
strokeDasharray="3 3" strokeDasharray="3 3"
horizontal={true} horizontal={true}
vertical={false} vertical={false}
className="stroke-slate-300"
/> />
</AreaChart> </AreaChart>
)} )}

View File

@@ -47,7 +47,11 @@ export function ReportHistogramChart({
<ResponsiveContainer> <ResponsiveContainer>
{({ width, height }) => ( {({ width, height }) => (
<BarChart width={width} height={height} data={rechartData}> <BarChart width={width} height={height} data={rechartData}>
<CartesianGrid strokeDasharray="3 3" vertical={false} /> <CartesianGrid
strokeDasharray="3 3"
vertical={false}
className="stroke-slate-300"
/>
<Tooltip content={<ReportChartTooltip />} cursor={<BarHover />} /> <Tooltip content={<ReportChartTooltip />} cursor={<BarHover />} />
<XAxis <XAxis
fontSize={12} fontSize={12}

View File

@@ -54,6 +54,7 @@ export function ReportLineChart({
strokeDasharray="3 3" strokeDasharray="3 3"
horizontal={true} horizontal={true}
vertical={false} vertical={false}
className="stroke-slate-300"
/> />
{references.map((ref) => ( {references.map((ref) => (
<ReferenceLine <ReferenceLine
@@ -93,6 +94,7 @@ export function ReportLineChart({
return ( return (
<React.Fragment key={serie.name}> <React.Fragment key={serie.name}>
<Line <Line
dot={false}
type={lineType} type={lineType}
key={serie.name} key={serie.name}
name={serie.name} name={serie.name}

View File

@@ -75,7 +75,7 @@ const TableHead = React.forwardRef<
<th <th
ref={ref} ref={ref}
className={cn( className={cn(
'h-10 border-b border-border bg-slate-50 px-4 text-left align-middle text-sm font-medium text-muted-foreground text-slate-500 shadow-[0_0_0_0.5px] shadow-border [&:has([role=checkbox])]:pr-0', 'h-10 border-b border-border bg-slate-100 px-4 text-left align-middle text-sm font-medium text-muted-foreground shadow-[0_0_0_0.5px] shadow-border [&:has([role=checkbox])]:pr-0',
className className
)} )}
{...props} {...props}