From 6c141ef756da4aa8d0a9a15b50666e418e88b5a4 Mon Sep 17 00:00:00 2001 From: gregory1996 Date: Wed, 3 Apr 2024 12:43:23 +0300 Subject: [PATCH] Hide duplicate nav items from sidebar on mobile, already in bottom bar --- src/components/Sidebar.js | 42 +++++++++++++++++++++++---------------- tailwind.config.js | 1 - 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/src/components/Sidebar.js b/src/components/Sidebar.js index 2cdb82213..c52aad38c 100644 --- a/src/components/Sidebar.js +++ b/src/components/Sidebar.js @@ -18,7 +18,7 @@ const NavItem = ({ return (
  • handleNavigate(path)} - className={`cursor-pointer flex items-center space-x-2 mb-4 p-2 rounded-r-xl ${location.pathname === path ? 'min481:bg-white min481:text-custom-blue' : 'nav-item-animate-hover'}`} + className={`cursor-pointer flex items-center space-x-2 mb-4 p-2 rounded-r-xl ${location.pathname === path ? 'bg-white text-custom-blue' : 'nav-item-animate-hover'}`} > {children}
  • @@ -108,22 +108,30 @@ const Sidebar = ({ isOpen, toggle }) => {
    {/* Nav Menu */} - - - {t("common.navItemCredentials")} - - - - {t("common.navItemHistory")} - - - - {t("common.navItemAddCredentials")} - - - - {t("common.navItemSendCredentials")} - +
    + + + {t("common.navItemCredentials")} + +
    +
    + + + {t("common.navItemHistory")} + +
    +
    + + + {t("common.navItemAddCredentials")} + +
    +
    + + + {t("common.navItemSendCredentials")} + +
    {t("common.navItemSettings")} diff --git a/tailwind.config.js b/tailwind.config.js index cb8ba5318..38169285c 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -17,7 +17,6 @@ module.exports = { }, screens: { 'max480': { 'max': '480px' }, - 'min481': { 'min': '481px' }, } }, },