Skip to content

Commit 6cdaf04

Browse files
committed
feat: adapted for mobile devices
1 parent d5fe8de commit 6cdaf04

File tree

14 files changed

+19
-21
lines changed

14 files changed

+19
-21
lines changed

playground/src/app/(demo)/alert/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const sizes: ThemeSize[] = ['xs', 'sm', 'md', 'lg', 'xl', '2xl'];
88

99
const AlertPage = () => {
1010
return (
11-
<div className="flex-c gap-4 bg-primary">
11+
<div className="flex-c gap-4">
1212
<Card
1313
split
1414
title="Color"

playground/src/app/(demo)/chip/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const ChipPage = () => {
1414
split
1515
title="Color"
1616
>
17-
<div className="flex gap-3">
17+
<div className="flex flex-wrap gap-3">
1818
{colors.map(color => (
1919
<div key={color}>
2020
<Chip color={color}>
@@ -29,7 +29,7 @@ const ChipPage = () => {
2929
split
3030
title="Color With Text"
3131
>
32-
<div className="flex gap-4">
32+
<div className="flex flex-wrap gap-4">
3333
{colors.map(color => (
3434
<div key={color}>
3535
<Chip
@@ -47,7 +47,7 @@ const ChipPage = () => {
4747
split
4848
title="Positions"
4949
>
50-
<div className="flex gap-3">
50+
<div className="flex flex-wrap gap-3">
5151
{positions.map(position => (
5252
<div key={position}>
5353
<Chip position={position}>
@@ -67,7 +67,7 @@ const ChipPage = () => {
6767
split
6868
title="Size"
6969
>
70-
<div className="flex gap-3">
70+
<div className="flex flex-wrap gap-3">
7171
{sizes.map(size => (
7272
<div key={size}>
7373
<Chip size={size}>
@@ -82,7 +82,7 @@ const ChipPage = () => {
8282
))}
8383
</div>
8484

85-
<div className="flex gap-3 mt-6">
85+
<div className="flex flex-wrap gap-3 mt-6">
8686
{sizes.map(size => (
8787
<div key={size}>
8888
<Chip

playground/src/app/(demo)/context-menu/modules/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Checkbox = () => {
1818
items={menus2}
1919
onChecksChange={setChecks}
2020
>
21-
<div className="h-50 w-80 flex items-center justify-center border rounded-md border-dashed text-sm">
21+
<div className="h-50 w-80 flex max-sm:w-auto items-center justify-center border rounded-md border-dashed text-sm">
2222
Right click here
2323
</div>
2424
</ContextMenuCheckbox>

playground/src/app/(demo)/context-menu/modules/DefaultContextMenuDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const DefaultDropdownMenuDemo = () => {
6363
title="Dropdown Menu"
6464
>
6565
<ContextMenu items={menus}>
66-
<div className="h-50 w-80 flex items-center justify-center border rounded-md border-dashed text-sm">
66+
<div className="h-50 w-80 max-sm:w-auto flex items-center justify-center border rounded-md border-dashed text-sm">
6767
Right click here
6868
</div>
6969
</ContextMenu>

playground/src/app/(demo)/context-menu/modules/Radio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Radio = () => {
1818
value={value}
1919
onValueChange={setValue}
2020
>
21-
<div className="h-50 w-80 flex items-center justify-center border rounded-md border-dashed text-sm">
21+
<div className="h-50 max-sm:w-auto w-80 flex items-center justify-center border rounded-md border-dashed text-sm">
2222
Right click here
2323
</div>
2424
</ContextMenuRadio>

playground/src/app/(demo)/context-menu/modules/WithArrow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const WithArrow = () => {
1414
contentProps={{ showArrow: true }}
1515
items={menus}
1616
>
17-
<div className="h-50 w-80 flex items-center justify-center border rounded-md border-dashed text-sm">
17+
<div className="h-50 max-sm:w-auto w-80 flex items-center justify-center border rounded-md border-dashed text-sm">
1818
Right click here
1919
</div>
2020
</ContextMenu>

playground/src/app/(demo)/progress/modules/Color.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Color = () => {
1818
split
1919
title="Color"
2020
>
21-
<div className="flex w-[320px] flex-col gap-[12px] lt-sm:w-auto">
21+
<div className="flex w-[320px] flex-col gap-[12px] max-sm:w-auto">
2222
{colors.map(color => (
2323
<Progress
2424
color={color}

playground/src/app/(demo)/progress/modules/Size.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Size = () => {
2020
split
2121
title="Size"
2222
>
23-
<div className="flex w-[320px] flex-col gap-[12px] lt-sm:w-auto">
23+
<div className="flex w-[320px] flex-col gap-[12px] max-sm:w-auto">
2424
{sizes.map((size, index) => (
2525
<Progress
2626
color={colors[index]}

playground/src/app/(demo)/sheet/modules/Side.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Side = () => {
99
split
1010
title="Side"
1111
>
12-
<div className="flex gap-3">
12+
<div className="flex flex-wrap gap-3">
1313
{sides.map(side => (
1414
<Sheet
1515
footer={<Button>Confirm</Button>}

playground/src/app/(demo)/skeleton/modules/DefaultDemo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const DefaultDemo = () => {
99
<div className="flex items-center space-x-4">
1010
<Skeleton className="size-12 rounded-full" />
1111
<div className="space-y-2">
12-
<Skeleton className="h-4 w-[250px]" />
13-
<Skeleton className="h-4 w-[200px]" />
12+
<Skeleton className="h-4 w-[250px] max-sm:w-[150px]" />
13+
<Skeleton className="h-4 w-[200px] max-sm:w-auto" />
1414
</div>
1515
</div>
1616
</Card>

0 commit comments

Comments
 (0)