Skip to content

Commit 664a946

Browse files
rasvanjaya21franky47
authored andcommitted
doc: add break word all for better ux
1 parent 3678adc commit 664a946

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

demo-tabs.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function Demo() {
2424
onChange={e => setHello(e.target.value || null)}
2525
data-interacted={Boolean(hello)}
2626
/>
27-
<p>Hello, {hello || 'anonymous visitor'}!</p>
27+
<p className="break-all">Hello, {hello || 'anonymous visitor'}!</p>
2828
</>
2929
)
3030
}

packages/docs/content/docs/basic-usage.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function Demo() {
2828
<>
2929
<input value={name || ''} onChange={e => setName(e.target.value)} />
3030
<button onClick={() => setName(null)}>Clear</button>
31-
<p>Hello, {name || 'anonymous visitor'}!</p>
31+
<p className="break-all">Hello, {name || 'anonymous visitor'}!</p>
3232
</>
3333
)
3434
}

packages/docs/src/app/(pages)/_landing/demo.client.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function Demo() {
2525
onChange={e => setHello(e.target.value || null)}
2626
data-interacted={Boolean(hello)}
2727
/>
28-
<p>Hello, {hello || 'anonymous visitor'}!</p>
28+
<p className="break-all">Hello, {hello || 'anonymous visitor'}!</p>
2929
</>
3030
)
3131
}

packages/docs/src/app/(pages)/_landing/demo.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function LandingDemo() {
2121
<div className="mb-4 h-[136px] animate-pulse rounded bg-zinc-50 dark:bg-zinc-900 sm:h-10" />
2222
}
2323
>
24-
<div className="mb-4 flex flex-col gap-4 sm:flex-row sm:items-center">
24+
<div className="mb-4 flex flex-col gap-4 items-start sm:flex-row">
2525
<Demo />
2626
<LookAtTheURL />
2727
</div>

0 commit comments

Comments
 (0)