Skip to content

Commit 89ce26f

Browse files
committed
Improve DataColocation on very small phones
1 parent 48352a0 commit 89ce26f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/index-page/data-colocation/component-tree.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ export const ComponentTree = forwardRef(function ComponentTree(
2828
</ComponentLabel>
2929
</div>
3030

31-
<div className="h-4" />
31+
<div className="h-4 max-[375px]:h-1" />
3232

3333
<div className="flex h-12 items-center" data-sector="2">
3434
<ComponentLabel className="border-neu-600 bg-neu-400 dark:border-neu-200 dark:bg-neu-50">
3535
{names[1]}
3636
</ComponentLabel>
3737
</div>
3838

39-
<div className="h-4" />
39+
<div className="h-4 max-[375px]:h-1" />
4040

4141
<div className="flex h-12 items-center" data-sector="3">
4242
<ComponentLabel className="border-sec-base bg-sec-lighter dark:border-sec-dark dark:bg-sec-darker/50">
4343
{names[2]}
4444
</ComponentLabel>
4545
</div>
4646

47-
<div className="h-4" />
47+
<div className="h-4 max-[375px]:h-1" />
4848

4949
<div className="flex h-12 items-center" data-sector="4">
5050
<ComponentLabel className="border-pri-base bg-pri-lighter/40 dark:border-pri-dark dark:bg-pri-darker/50">
@@ -53,7 +53,7 @@ export const ComponentTree = forwardRef(function ComponentTree(
5353
</div>
5454
</div>
5555

56-
<div className="flex flex-col items-center">
56+
<div className="flex flex-col items-center max-[375px]:-translate-y-2.5 max-[375px]:scale-[.85]">
5757
<div
5858
className="flex size-12 items-center justify-center bg-neu-100 dark:bg-neu-50"
5959
data-sector="1"

0 commit comments

Comments
 (0)