Skip to content

Commit 4088f43

Browse files
committed
fix(docs): hide platform select on mobile
1 parent e682d54 commit 4088f43

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

apps/docs/components/preview-card.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function PreviewCard({ preview }: PreviewCardProps) {
2121
return (
2222
<>
2323
<div className="group/copy bg-card not-prose relative flex min-h-[450px] flex-col rounded-md border p-4">
24-
<div className="absolute -top-11 right-0 mt-px flex items-center justify-end">
24+
<div className="absolute -top-11 right-0 mt-px hidden items-center justify-end sm:flex">
2525
<PlatformSelect />
2626
</div>
2727
<div className="flex flex-1 flex-col items-center justify-center">
@@ -44,13 +44,13 @@ export function PreviewCard({ preview }: PreviewCardProps) {
4444
<a
4545
href={`https://reactnativereusables.com/showcase/links/${component}`}
4646
target="_blank"
47-
className="not-prose bg-primary text-primary-foreground focus-visible:border-ring focus-visible:ring-ring/50 mt-4 inline-flex w-full shrink-0 items-center gap-3 rounded-xl p-3 text-sm font-medium shadow-sm outline-none transition-all focus-visible:ring-[3px] sm:hidden [&_svg]:shrink-0">
48-
<div className="dark:border-border/0 border-border/30 flex items-center justify-center rounded-lg border bg-black p-2.5 shadow-md">
49-
<RnrIcon className="size-8 text-white" pathClassName="stroke-1" />
47+
className="not-prose bg-primary text-primary-foreground focus-visible:border-ring focus-visible:ring-ring/50 mt-4 inline-flex w-full shrink-0 items-center gap-2.5 rounded-lg p-2.5 text-sm font-medium shadow-sm outline-none transition-all focus-visible:ring-[3px] sm:hidden dark:p-2 [&_svg]:shrink-0">
48+
<div className="bg-primary flex items-center justify-center rounded-lg p-1 shadow-md dark:bg-black dark:p-2">
49+
<RnrIcon className="size-11 text-white dark:size-10" pathClassName="stroke-1" />
5050
</div>
51-
<div className="flex flex-col gap-0.5">
51+
<div className="flex flex-col gap-1">
5252
<p className="leading-none">Tap to preview in the app</p>
53-
<p className="text-xl font-semibold leading-none">React Native Reusables</p>
53+
<p className="text-[1.3rem] font-semibold leading-none">React Native Reusables</p>
5454
</div>
5555
</a>
5656
</>

0 commit comments

Comments
 (0)