Skip to content

Commit 1699cdd

Browse files
committed
Revert some changes and give scrollbar-thumb a default color
1 parent c6c5302 commit 1699cdd

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/app/components/ResumeForm/index.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use client";
2+
import { useState } from "react";
23
import {
34
useAppSelector,
45
useSaveStateToLocalStorageOnChange,
@@ -28,17 +29,17 @@ export const ResumeForm = () => {
2829
useSaveStateToLocalStorageOnChange();
2930

3031
const formsOrder = useAppSelector(selectFormsOrder);
32+
const [isHover, setIsHover] = useState(false);
3133

3234
return (
33-
<div
34-
className={cx(
35-
"flex justify-center md:h-[calc(100vh-var(--top-nav-bar-height))] md:justify-end md:overflow-y-scroll",
36-
"scrollbar-thumb-gray-200",
35+
<div
36+
className={cx(
37+
"flex justify-center scrollbar-thin scrollbar-track-gray-100 scrollbar-thumb-gray-100 md:h-[calc(100vh-var(--top-nav-bar-height))] md:justify-end md:overflow-y-scroll",
38+
isHover && "!scrollbar-thumb-gray-200"
3739
)}
40+
onMouseOver={() => setIsHover(true)}
41+
onMouseLeave={() => setIsHover(false)}
3842
>
39-
<div className="hidden md:block absolute top-0 bottom-0 right-0 w-3 bg-gray-100">
40-
</div>
41-
4243
<section className="flex max-w-2xl flex-col gap-8 p-[var(--resume-padding)]">
4344
<ProfileForm />
4445
{formsOrder.map((form) => {

src/app/resume-builder/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function Create() {
99
<Provider store={store}>
1010
<main className="relative h-full w-full overflow-hidden bg-gray-50">
1111
<div className="grid grid-cols-3 md:grid-cols-6">
12-
<div className="col-span-3 relative">
12+
<div className="col-span-3">
1313
<ResumeForm />
1414
</div>
1515
<div className="col-span-3">

0 commit comments

Comments
 (0)