Skip to content

Commit d218954

Browse files
committed
fix(tailwind): fix footer layout and tailwind config
- Remove unused `isDev` variable from `Footer.tsx`. - Add `inline` and `inline-flex` classes to footer elements for improved layout. - Move custom `xs` breakpoint definition to `theme.extend` in `tailwind.config.ts`.
1 parent 1c6f628 commit d218954

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/components/Footer.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import { Popover, PopoverButton, PopoverPanel } from '@headlessui/react'
22
import { GithubIcon } from '@/components/icons/Icons'
33
import { CodeBlock } from '@/components/CodeBlock'
44

5-
const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production' || process.env.NODE_ENV == null;
6-
7-
85
export function Footer() {
96
return (
107
<footer className="m-8 mb-2 text-sm text-muted">
@@ -54,10 +51,10 @@ export function Footer() {
5451
</a>
5552
</span>
5653
</div>
57-
<div className='font-medium text-center flex items-center justify-center gap-1'>
54+
<div className='font-medium text-center inline-flex truncate items-center justify-center gap-1'>
5855
<span>This is a demo app (</span>
5956
<Popover className="relative">
60-
<PopoverButton className="font-bold hover:text-foreground transition-colors outline-none">
57+
<PopoverButton className="font-bold hover:text-foreground transition-colors outline-none inline">
6158
self-host
6259
</PopoverButton>
6360
<PopoverPanel anchor="top" className="bg-base p-6 rounded-xl shadow-2xl border border-offbase w-[90vw] max-w-3xl z-50 backdrop-blur-md flex flex-col gap-4">

tailwind.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ export default {
6666
},
6767
},
6868
},
69-
},
70-
screens: {
71-
xs: '410px', // custom xs breakpoint
69+
screens: {
70+
xs: '410px', // custom xs breakpoint
71+
},
7272
},
7373
},
7474
plugins: [typography],

0 commit comments

Comments
 (0)