Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIXED: Footer alignment issue in large screen #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export default function RootLayout({
/>
</head>

<body suppressHydrationWarning={true}>
<body
suppressHydrationWarning={true}
className="flex flex-col min-h-screen items-center [&>*]:w-full [&>footer]:mt-auto"
>
<TwSizeIndicator />
<Providers>
<Header />
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/helpers/TwSizeIndicator.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const TwSizeIndicator = () => {
if (process.env.NODE_ENV === "development") {
return (
<div className="fixed left-0 top-0 z-50 flex w-[30px] items-center justify-center bg-gray-200 py-[2.5px] text-[12px] uppercase text-black sm:bg-red-200 md:bg-yellow-200 lg:bg-green-200 xl:bg-blue-200 2xl:bg-pink-200">
<div className="fixed left-0 top-0 z-50 flex !w-[30px] items-center justify-center bg-gray-200 py-[2.5px] text-[12px] uppercase text-black sm:bg-red-200 md:bg-yellow-200 lg:bg-green-200 xl:bg-blue-200 2xl:bg-pink-200">
<span className="block sm:hidden">all</span>
<span className="hidden sm:block md:hidden">sm</span>
<span className="hidden md:block lg:hidden">md</span>
Expand Down