Skip to content

Commit 619410c

Browse files
committed
fix: broken styles
1 parent 109659a commit 619410c

File tree

8 files changed

+29
-21
lines changed

8 files changed

+29
-21
lines changed

apps/portal/src/app/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,16 @@
108108
}
109109
}
110110

111+
@layer utilities {
112+
.no-scrollbar::-webkit-scrollbar {
113+
display: none;
114+
}
115+
.no-scrollbar {
116+
-ms-overflow-style: none;
117+
scrollbar-width: none;
118+
}
119+
}
120+
111121
code span {
112122
color: var(--code-light-color);
113123
}

apps/portal/src/app/payments/custom-data/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ To connect with other auth strategies, use external wallets, or sponsor gas for
195195

196196
- [Buy.prepare](/references/typescript/v5/buy/prepare)
197197
- [Sell.prepare](/references/typescript/v5/sell/prepare)
198-
- [BuyWidget](/references/typescript/v5/buywidget)
199-
- [CheckoutWidget](/references/typescript/v5/checkoutwidget)
200-
- [TransactionWidget](/references/typescript/v5/transactionwidget)
198+
- [BuyWidget](/references/typescript/v5/widgets/BuyWidget)
199+
- [CheckoutWidget](/references/typescript/v5/widgets/CheckoutWidget)
200+
- [TransactionWidget](/references/typescript/v5/widgets/TransactionWidget)
201201

apps/portal/src/app/payments/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ thirdweb Payments allow developers to create advanced payment flows to monetize
4646
</TabsTrigger>
4747
<TabsTrigger value="http" className="flex items-center [&>p]:mb-0">
4848
<EngineIcon className="size-4 mr-1.5" />
49-
HTTP API
49+
HTTP
5050
</TabsTrigger>
5151
</TabsList>
5252

@@ -190,7 +190,7 @@ thirdweb Payments allow developers to create advanced payment flows to monetize
190190
</TabsContent>
191191

192192
<TabsContent value="react">
193-
The quickest way to setup payments in your React app is with the [`BuyWidget`](/references/typescript/v5/buywidget), [`CheckoutWidget`](/references/typescript/v5/checkoutwidget), and [`TransactionWidget`](/references/typescript/v5/transactionwidget) components.
193+
The quickest way to setup payments in your React app is with the [`BuyWidget`](/references/typescript/v5/widgets/BuyWidget), [`CheckoutWidget`](/references/typescript/v5/widgets/CheckoutWidget), and [`TransactionWidget`](/references/typescript/v5/widgets/TransactionWidget) components.
194194
### Installation
195195

196196
Install the thirdweb SDK in your React project:

apps/portal/src/app/payments/products/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const metadata = createMetadata({
2323

2424
Accept crypto and fiat payments for any product using the `CheckoutWidget`.
2525

26-
<Tabs defaultValue="typescript">
26+
<Tabs defaultValue="react">
2727
<TabsList>
2828
<TabsTrigger value="react" className="flex items-center gap-2 [&>p]:mb-0">
2929
<ReactIcon className="w-4 h-4 mr-2" />

apps/portal/src/app/wallets/server/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Server wallets are wallets that are managed by your own application, like a trea
2020
<TabsList>
2121
<TabsTrigger value="http" className="flex items-center gap-2 [&>p]:mb-0">
2222
<EngineIcon className="w-4 h-4 mr-2" />
23-
HTTP API
23+
HTTP
2424
</TabsTrigger>
2525
<TabsTrigger value="typescript" className="flex items-center gap-2 [&>p]:mb-0">
2626
<TypeScriptIcon className="w-4 h-4 mr-2" />

apps/portal/src/components/Document/PageFooter.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
BadgeHelpIcon,
32
BrainIcon,
43
type LucideIcon,
54
ScrollTextIcon,
@@ -39,13 +38,6 @@ export function PageFooter(props: {
3938
function Links() {
4039
return (
4140
<ul className="flex flex-col gap-3">
42-
<FooterLinkItem
43-
href="https://thirdweb.com/support"
44-
icon={BadgeHelpIcon}
45-
label="Visit our support site"
46-
prefix="Need help?"
47-
/>
48-
4941
<FooterLinkItem
5042
href="https://www.youtube.com/@thirdweb_"
5143
icon={VideoIcon}

apps/portal/src/components/others/Sidebar.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,20 +150,20 @@ function DocSidebarNonCollapsible(props: {
150150

151151
return (
152152
<div className="my-4">
153-
<div className="mb-2 px-3 flex items-center gap-2 rounded-lg text-foreground">
153+
<div className="mb-2 flex items-center gap-2 rounded-lg text-foreground">
154154
{icon && <SidebarIcon icon={icon} />}
155155
{href ? (
156156
<Link
157157
className={cn(
158-
"block hover:bg-violet-800/20 hover:border-violet-800/50 border border-transparent",
158+
"block px-3 py-1.5 hover:bg-violet-800/20 w-full rounded-lg hover:border-violet-800/50 border border-transparent",
159159
isCategoryActive && "text-foreground",
160160
)}
161161
href={href}
162162
>
163163
{name}
164164
</Link>
165165
) : (
166-
<div className="">{name}</div>
166+
<div className="px-3">{name}</div>
167167
)}
168168
</div>
169169
<ul className="flex flex-col">
@@ -215,7 +215,10 @@ function DocSidebarCategory(props: {
215215
);
216216

217217
const triggerEl = href ? (
218-
<Link className={cn("block w-full text-left font-medium")} href={href}>
218+
<Link
219+
className={cn("w-full py-1.5 px-3 text-left font-medium")}
220+
href={href}
221+
>
219222
{triggerElContent}
220223
</Link>
221224
) : (

apps/portal/src/components/ui/tabs.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const TabsList = React.forwardRef<
1212
React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>
1313
>(({ className, ...props }, ref) => (
1414
<TabsPrimitive.List
15-
className={cn("flex w-100 items-center justify-start border-b", className)}
15+
className={cn(
16+
"flex w-100 items-center justify-start border-b overflow-x-auto overflow-y-hidden whitespace-nowrap",
17+
className,
18+
)}
1619
ref={ref}
1720
{...props}
1821
/>
@@ -26,7 +29,7 @@ const TabsTrigger = React.forwardRef<
2629
<TabsPrimitive.Trigger
2730
className={cn(
2831
"mb-[-2px] flex items-center whitespace-nowrap px-4 py-2 text-sm font-medium",
29-
"border-transparent border-b-2 text-muted-foreground ring-offset-700 transition-all",
32+
"border-transparent border-b-4 text-muted-foreground ring-offset-700 transition-all",
3033
"data-[state=active]:border-violet-800 hover:text-foreground data-[state=active]:text-foreground",
3134
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
3235
className,

0 commit comments

Comments
 (0)