Skip to content

Commit aa7f43f

Browse files
authored
make some ui changes (#129)
1 parent 9b6d917 commit aa7f43f

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

src/global.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
--chart-5: 27 87% 67%;
3232
--graph: #3f3f46;
3333
--graph-group: #a1a1aa;
34+
--graph-bg: #fafafa;
3435
}
3536

3637
.dark {
@@ -60,6 +61,7 @@
6061
--chart-5: 340 75% 55%;
6162
--graph: #d4d4d8;
6263
--graph-group: #52525b;
64+
--graph-bg: #111111;
6365
}
6466
}
6567

src/modules/editor/legend-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import legends from './legends'
44
function Legend() {
55
const { t } = useTranslation()
66
return (
7-
<div className="divide-y-2 *:py-4 first:*:pt-0 last:*:pb-0">
7+
<div className="divide-y *:py-4 first:*:pt-0 last:*:pb-0">
88
{/* TODO move the tip to the graph */}
99
{/* <div className="tip">
1010
<ArrowLeftCircle size={14} />

src/modules/home/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function Home() {
123123
<div
124124
className="flex-1 flex min-h-0"
125125
>
126-
<div className={clsx('flex-1 relative flex flex-col min-w-0', { 'justify-center': !graphShow })}>
126+
<div className={clsx('flex-1 relative flex flex-col min-w-0 bg-graph-bg', { 'justify-center': !graphShow })}>
127127
{graphShow && (
128128
<ScrollArea className="flex-1 min-h-0 h-full">
129129
<div className="flex items-center justify-center p-8 h-full">

src/modules/samples/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ function Samples() {
3737
const { t } = useTranslation()
3838
return (
3939
<ScrollArea className="flex-1">
40-
<div>
41-
<div className="max-w-7xl my-0 mx-auto p-6 flex flex-col space-y-12">
40+
<div className="bg-graph-bg">
41+
<div className="max-w-7xl my-0 mx-auto p-6 flex flex-col space-y-14">
4242
{samples.map(({ desc, label, regex }) => {
4343
const linkTo = `/?r=${encodeURIComponent(`/${regex}/`)}`
4444
return (

tailwind.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default {
5555
},
5656
'graph': 'var(--graph)',
5757
'graph-group': 'var(--graph-group)',
58+
'graph-bg': 'var(--graph-bg)',
5859
},
5960
borderRadius: {
6061
lg: 'var(--radius)',

0 commit comments

Comments
 (0)