Skip to content

Commit

Permalink
fixed some responsive issues
Browse files Browse the repository at this point in the history
like navbar and explore going behind sidebar
  • Loading branch information
Aadarsh805 committed Oct 5, 2022
1 parent 33b49fc commit b423042
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ const Navbar = () => {
}, [screenSize]);

return (
<div className={`w-full flex items-center justify-between my-4 px-8`}>
<div
className={`flex items-center justify-between my-4 px-8 ${
activeMenu && "md:ml-60"
}`}
>
<div className="flex items-center gap-32">
<div className="flex items-center gap-8">
<IconButton
Expand Down
2 changes: 1 addition & 1 deletion components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Sidebar = () => {
onClick={(event) => event.stopPropagation()}
>
<Cross onClick={() => setActiveMenu(false)} />
<div className="flex justify-between items-center gap-3 ml-3 text-xl font-extrabold tracking-tight text-slate-900">
<div className="flex justify-between items-center gap-3 ml-3 md:pt-0 pt-3 text-xl font-extrabold tracking-tight text-slate-900">
<Link href="/">
<span className="text-2x text-gray-100">Groovy</span>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion components/svg/Cross.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Cross = (props) => {
viewBox="0 0 24 24"
style={{ strokeWidth: "2" }}
stroke="currentColor"
className="w-6 h-6 text-white ml-auto m-5 cursor-pointer"
className="w-6 h-6 text-white ml-auto m-5 cursor-pointer md:block hidden"
>
<path
style={{
Expand Down
2 changes: 1 addition & 1 deletion pages/Explore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Explore = () => {
const { activeMenu, setActiveMenu } = useStateContext();

return (
<div className={`flex flex-col gap-4 mt-12 mx-8`}>
<div className={`flex flex-col gap-4 mt-12 px-8 ${activeMenu && 'md:ml-60'}`}>
<h2 className="text-2xl font-normal text-gray-100">Trending New Hits</h2>

<div className="grid grid-cols-4 gap-4 mt-6">
Expand Down

0 comments on commit b423042

Please sign in to comment.