mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
docs: fix scrollbar
This commit is contained in:
@@ -248,3 +248,14 @@
|
|||||||
html {
|
html {
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@layer utilities {
|
||||||
|
.no-scrollbar::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.no-scrollbar {
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -28,6 +28,7 @@ import { useAtom } from "jotai";
|
|||||||
import { optionsAtom } from "./store";
|
import { optionsAtom } from "./store";
|
||||||
import { useTheme } from "next-themes";
|
import { useTheme } from "next-themes";
|
||||||
import { ScrollArea } from "../ui/scroll-area";
|
import { ScrollArea } from "../ui/scroll-area";
|
||||||
|
import styles from "./builder.module.css";
|
||||||
const frameworks = [
|
const frameworks = [
|
||||||
{
|
{
|
||||||
title: "Next.js",
|
title: "Next.js",
|
||||||
@@ -268,8 +269,18 @@ export function Builder() {
|
|||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
||||||
<div className="flex gap-4 md:gap-12 flex-col md:flex-row items-center md:items-start">
|
<div className="flex gap-4 md:gap-12 flex-col md:flex-row items-center md:items-start">
|
||||||
<ScrollArea className="w-4/12">
|
<div className={cn("w-4/12")}>
|
||||||
<div className="overflow-scroll h-[580px] relative">
|
<div
|
||||||
|
className="overflow-scroll h-[580px] relative"
|
||||||
|
style={{
|
||||||
|
scrollbarWidth: "none",
|
||||||
|
scrollbarColor: "transparent transparent",
|
||||||
|
//@ts-expect-error
|
||||||
|
"&::-webkit-scrollbar": {
|
||||||
|
display: "none",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
{options.signUp ? (
|
{options.signUp ? (
|
||||||
<AuthTabs
|
<AuthTabs
|
||||||
tabs={[
|
tabs={[
|
||||||
@@ -289,8 +300,18 @@ export function Builder() {
|
|||||||
<SignIn />
|
<SignIn />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</ScrollArea>
|
</div>
|
||||||
<ScrollArea className="w-[45%] flex-grow">
|
<ScrollArea
|
||||||
|
className="w-[45%] flex-grow"
|
||||||
|
style={{
|
||||||
|
scrollbarWidth: "none",
|
||||||
|
scrollbarColor: "transparent transparent",
|
||||||
|
//@ts-expect-error
|
||||||
|
"&::-webkit-scrollbar": {
|
||||||
|
display: "none",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div className="h-[580px]">
|
<div className="h-[580px]">
|
||||||
{currentStep === 0 ? (
|
{currentStep === 0 ? (
|
||||||
<Card className="rounded-none flex-grow h-full">
|
<Card className="rounded-none flex-grow h-full">
|
||||||
|
|||||||
Reference in New Issue
Block a user