Skip to content

Commit 30eccea

Browse files
committed
Added a fix to a horizontal token scroll glitch
1 parent 48b625f commit 30eccea

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/pages/dashboard.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -318,17 +318,13 @@ const Dashboard = () => {
318318
value={randomToken}
319319
readOnly
320320
className={`
321-
w-full px-3 py-2 pr-10 rounded-md ${
322-
theme === "dark"
323-
? "bg-gray-700 border border-gray-600 placeholder-gray-400"
324-
: "bg-white border border-gray-300 placeholder-gray-400"
325-
}
326-
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
327-
${
328-
showToken ? "text-base" : "text-sm"
329-
} md:text-base text-ellipsis
330-
`}
331-
onWheel={handleScroll}
321+
w-full px-3 py-2 pr-10 rounded-md ${
322+
theme === "dark"
323+
? "bg-gray-700 border border-gray-600 placeholder-gray-400 text-white"
324+
: "bg-white border border-gray-300 placeholder-gray-400 text-black"
325+
}
326+
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
327+
`}
332328
/>
333329
<div
334330
className="absolute top-0 right-0 bottom-0 flex items-center px-3 cursor-pointer eye-icon"

0 commit comments

Comments
 (0)