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

fix(UI) : Navbar Collapsing Issue #268 #273

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
6 changes: 6 additions & 0 deletions src/components/Footer/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@media only screen and (max-width: 550px) {
#footer {
max-width: 102vw;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

making its width 102vw will make the footer overflow horizontally.

min-width: 102vw;
}
}
3 changes: 3 additions & 0 deletions src/components/Footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ import React, { useState, useEffect } from "react";
import { getFossologyVersion } from "services/info";
import { getSessionStorage, setSessionStorage } from "shared/storageHelper";

// custom css
import "./index.css";

const Footer = () => {
const [version, setVersion] = useState(
getSessionStorage("fossologyVersion") || null
Expand Down
8 changes: 8 additions & 0 deletions src/components/Header/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@
display: flex;
gap: 10px;
}


@media only screen and (max-width : 550px) {
#navbar{
min-width: 102vw;
}

}
1 change: 1 addition & 0 deletions src/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const Header = () => {
expand="lg"
className="bg-primary-color py-0 pl-0 text-white"
sticky="top"
id="navbar"
>
<Navbar.Brand as={Link} to={routes.home} className="py-0">
<Image
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Home/Features.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Features = () => {
{
id: 1,
img: upload,
heading: "Upload and Scan files",
heading: "Upload and Scan Files",
description:
"Upload and scan files into the fossology server and get information.",
},
Expand Down
6 changes: 5 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,12 @@ h6 {
@media (max-width: 991px) {
.dropleft .dropdown-menu {
right: unset !important;
left: 3.5em !important;
left: 0em !important;
top: 3.5em !important;
bottom: unset !important;
padding: 1.5rem;


}
#basic-navbar-nav {
padding: 2rem;
Expand Down
Loading