Skip to content

Commit

Permalink
Merge pull request #239 from bryanlundberg/chart-style
Browse files Browse the repository at this point in the history
style: alternate odd/even colors in chart
  • Loading branch information
bryanlundberg authored Dec 30, 2023
2 parents 92ca7ea + 85e3b90 commit 875e4b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/cubes/TableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function TableRow({ cube }: { cube: Cube }) {
<>
<div
onClick={(e) => redirectToHome(e)}
className="table-row h-10 transition duration-200 bg-transparent dark:hover:bg-zinc-900 light:hover:bg-neutral-200 dark:text-neutral-100 light:text-neutral-950 "
className="table-row h-10 transition duration-200 bg-transparent dark:even:bg-zinc-900 light:even:bg-neutral-200 dark:hover:bg-zinc-800 light:hover:bg-neutral-300 dark:text-neutral-100 light:text-neutral-950 "
>
<div className="table-cell w-10 align-middle">
<BookmarkFav
Expand Down
2 changes: 1 addition & 1 deletion src/components/stats/StatisticRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function StatisticRow({
cubeSession,
}: StatisticRow) {
return (
<div className="flex items-center h-10 text-xs rounded-md dark:text-zinc-400 light:text-neutral-950 light:bg-neutral-100">
<div className="flex items-center h-10 text-xs bg-transparent rounded-md dark:text-zinc-300 light:text-neutral-950 dark:odd:bg-zinc-900 light:odd:bg-neutral-100">
<div className="w-1/5 ps-3">{label}</div>
<div className="w-1/5 text-center">{global}</div>
<div className="w-1/5 text-center">{session}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/stats/StatisticsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function StatisticHeader() {
const { lang } = useSettingsModalStore();
return (
<>
<div className="flex items-center h-10 p-1 font-medium rounded-md dark:bg-zinc-900 dark:text-zinc-200 light:bg-neutral-200 light:text-neutral-950">
<div className="flex items-center h-10 p-1 font-medium rounded-md dark:bg-zinc-700 dark:text-zinc-200 light:bg-neutral-200 light:text-neutral-950">
<div className="w-1/5"></div>
<div className="w-1/5 text-center">
{translation.metrics["global"][lang]}
Expand Down

0 comments on commit 875e4b3

Please sign in to comment.