fix(tailwind): fix footer layout and tailwind config
Some checks failed
Build and Publish Docker Image / build (push) Has been cancelled

- 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`.
This commit is contained in:
Richard Roberson 2025-11-22 16:32:03 -07:00
parent 1c6f628c10
commit d2189541e8
2 changed files with 5 additions and 8 deletions

View file

@ -2,9 +2,6 @@ import { Popover, PopoverButton, PopoverPanel } from '@headlessui/react'
import { GithubIcon } from '@/components/icons/Icons' import { GithubIcon } from '@/components/icons/Icons'
import { CodeBlock } from '@/components/CodeBlock' import { CodeBlock } from '@/components/CodeBlock'
const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production' || process.env.NODE_ENV == null;
export function Footer() { export function Footer() {
return ( return (
<footer className="m-8 mb-2 text-sm text-muted"> <footer className="m-8 mb-2 text-sm text-muted">
@ -54,10 +51,10 @@ export function Footer() {
</a> </a>
</span> </span>
</div> </div>
<div className='font-medium text-center flex items-center justify-center gap-1'> <div className='font-medium text-center inline-flex truncate items-center justify-center gap-1'>
<span>This is a demo app (</span> <span>This is a demo app (</span>
<Popover className="relative"> <Popover className="relative">
<PopoverButton className="font-bold hover:text-foreground transition-colors outline-none"> <PopoverButton className="font-bold hover:text-foreground transition-colors outline-none inline">
self-host self-host
</PopoverButton> </PopoverButton>
<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"> <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">

View file

@ -66,9 +66,9 @@ export default {
}, },
}, },
}, },
}, screens: {
screens: { xs: '410px', // custom xs breakpoint
xs: '410px', // custom xs breakpoint },
}, },
}, },
plugins: [typography], plugins: [typography],