Skip to content

Commit 4e2caca

Browse files
style: update eval bars
1 parent ebef04a commit 4e2caca

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/components/HorizontalEvaluationBar/HorizontalEvaluationBar.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ export const HorizontalEvaluationBar: React.FC<Props> = ({
1515
width = Math.max(0, Math.min(100, width))
1616

1717
return (
18-
<div className="relative flex h-6 w-[75vh] max-w-[70vw] flex-col justify-center overflow-hidden rounded-sm bg-engine-1">
19-
<div className="absolute left-0 top-0 z-0 h-full w-full bg-black bg-opacity-40" />
18+
<div className="relative flex h-6 w-[75vh] max-w-[70vw] flex-col justify-center overflow-hidden rounded-sm bg-engine-3/30">
2019
<p className="z-10 ml-2 whitespace-nowrap text-sm">{label}</p>
2120
<div
22-
className="absolute bottom-0 left-0 z-0 h-full w-full transform rounded-r-sm bg-engine-1 duration-300"
21+
className="absolute bottom-0 left-0 z-0 h-full w-full transform rounded-r-sm bg-engine-3 duration-300"
2322
style={{ width: `${width}%` }}
2423
/>
2524
</div>

src/components/VerticalEvaluationBar/VerticalEvaluationBar.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export const VerticalEvaluationBar: React.FC<Props> = ({
1414
const height = ((value ?? min - min) / (max - min)) * 100
1515

1616
return (
17-
<div className="relative flex h-[75vh] max-h-[70vw] w-6 flex-col justify-end overflow-hidden rounded-sm bg-human-4">
18-
<div className="absolute left-0 top-0 z-0 h-full w-full bg-black bg-opacity-40" />
17+
<div className="relative flex h-[75vh] max-h-[70vw] w-6 flex-col justify-end overflow-hidden rounded-sm bg-human-3/30">
1918
<p className="z-10 mb-2 -rotate-90 whitespace-nowrap text-sm">{label}</p>
2019
<div
2120
className="absolute bottom-0 left-0 z-0 h-full w-full transform rounded-t-sm bg-human-3 duration-300"

0 commit comments

Comments
 (0)