Skip to content

Commit

Permalink
refactor: update mobile-nav styling for PWA compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kdurek committed Aug 2, 2024
1 parent 4e517a3 commit fe5de6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/(auth)/logowanie/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const SubmitButton = () => {
);
};

export function GoogleSignInButton() {
function GoogleSignInButton() {
const t = useTranslations('GoogleSignInButton');

return (
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/mobile-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function MobileNav() {

return (
<>
<nav className="fixed bottom-0 z-40 flex w-full rounded-t-md bg-background shadow-[0px_4px_16px_rgba(17,17,26,0.1),_0px_8px_24px_rgba(17,17,26,0.1),_0px_16px_56px_rgba(17,17,26,0.1)]">
<nav className="fixed bottom-0 z-40 flex w-full rounded-t-md bg-background shadow-[0px_4px_16px_rgba(17,17,26,0.1),_0px_8px_24px_rgba(17,17,26,0.1),_0px_16px_56px_rgba(17,17,26,0.1)] pwa:pb-8">
{navItems.map((item, index) => (
<Fragment key={index}>
<Link
Expand All @@ -36,7 +36,7 @@ export function MobileNav() {
</Fragment>
))}
</nav>
<div className="pt-16" />
<div className="pt-16 pwa:pt-24" />
</>
);
}
3 changes: 3 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export default {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
},
screens: {
pwa: { raw: '(display-mode: standalone)' },
},
},
},
plugins: [require('tailwindcss-animate')],
Expand Down

0 comments on commit fe5de6b

Please sign in to comment.