Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent default scrollbar from displaying on tools page #1077

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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