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

bugfix/stickyFooter #86

Merged
merged 1 commit into from
Aug 25, 2024
Merged
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
24 changes: 13 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hivemind</title>
</head>
<html lang="en" class="h-full">

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hivemind</title>
</head>

<body class="h-full">
<div id="root" class="h-full"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import PrivateRoutes from "./routes/PrivateRoutes";

function App() {
return (
<>
<div className="flex flex-col h-full">
<Navbar />
<Routes>
<Route path="/login" element={<Login />} />
Expand All @@ -34,7 +34,7 @@ function App() {
initialIsOpen={import.meta.env.VITE_OPEN_DEVTOOLS === "true" ? true : false}
/>
<Footer />
</>
</div>
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/CommentContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const CommentContainer = (props: any) => {

return (
<div
className="p-3 mx-auto my-4 max-w-xl bg-gray-300 xs:rounded-none sm:rounded-md"
className="p-3 mx-auto my-4 max-w-xl w-full bg-gray-300 xs:rounded-none sm:rounded-md"
id={props.Id}
>
<div className="flex gap-2">
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContentContentContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ContentContentContainer = (props: TContent) => {
);
return (
<div
className="p-3 mx-auto my-2 max-w-xl bg-gray-300 xs:rounded-none sm:rounded-md"
className="p-3 mx-auto my-2 max-w-xl w-full bg-gray-300 xs:rounded-none sm:rounded-md"
id={props.Id}
>
<div className="flex gap-2">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import GitHubIcon from "../assets/GitHubIcon";

const Footer = () => {
return (
<footer className="bg-black text-white py-2">
<footer className="bg-black text-white py-2 mt-auto">
<div className="container mx-auto flex flex-col md:flex-row justify-evenly items-center text-center">
{/* Left Side */}
<div className="mb-4 md:mb-0">
Expand Down
2 changes: 1 addition & 1 deletion src/components/HiveContentContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const HiveContentContainer = ({ item }: { item: TContent }) => {
);
return (
<div
className="p-3 mx-auto my-2 max-w-xl bg-gray-300 xs:rounded-none sm:rounded-md"
className="p-3 mx-auto my-2 max-w-xl w-full bg-gray-300 xs:rounded-none sm:rounded-md"
id={item.Id}
>
<div className="flex gap-2">
Expand Down
2 changes: 1 addition & 1 deletion src/components/HomeContentContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const HomeContentContainer = ({ item }: { item: any }) => {
return (
<>
<div
className="p-3 mx-auto my-2 max-w-xl bg-gray-300 xs:rounded-none sm:rounded-md hover:bg-gray-200"
className="p-3 mx-auto my-2 max-w-xl w-full bg-gray-300 xs:rounded-none sm:rounded-md hover:bg-gray-200"
id={item.Id}
>
<Link to={`/hive/uuid/${item.Uuid}/content`}>
Expand Down