Skip to content

Commit

Permalink
fix: prevent default scrollbar from displaying on tools page
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Hopper-Lowe <[email protected]>
  • Loading branch information
ryanhopperlowe committed Dec 30, 2024
1 parent a39f77d commit 948ee18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ui/admin/app/components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { cn } from "~/lib/utils";

import { buttonVariants } from "~/components/ui/button";

const InputReset =
"w-full p-3 bg-transparent border-none focus-visible:border-none focus-visible:outline-none rounded-full";

const inputVariants = cva(
cn(
"flex items-center h-9 w-full rounded-md bg-transparent border border-input text-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50"
Expand Down Expand Up @@ -50,9 +53,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
<input
type={internalType}
data-1p-ignore={!isPassword}
className={cn(
"w-full p-3 bg-transparent border-none focus-visible:border-none focus-visible:outline-none rounded-full"
)}
className={InputReset}
ref={ref}
{...props}
/>
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/routes/_auth.tools._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function Tools() {
};

return (
<ScrollArea className="p-8 flex flex-col gap-4">
<ScrollArea className="h-full p-8 flex flex-col gap-4">
<div className="flex justify-between items-center">
<TypographyH2>Tools</TypographyH2>
<div className="flex items-center space-x-2">
Expand Down

0 comments on commit 948ee18

Please sign in to comment.