Skip to content

Commit

Permalink
Fixed visibility of sidebar text (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
Utsavladia authored Aug 4, 2024
1 parent e830efc commit dde135f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Sidebar/SideBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ const SideBar = ({ children }) => {
<div className='d-flex align-items-center justify-content-center py-2 gap-2'>
<AnimatePresence>
{isSidebarOpen && (
<motion.h1 variants={showAnimation} initial='hidden' animate='show' exit='hidden' className='my-1' style={{fontSize: '18px', lineHeight: '0'}}>
<motion.h1 variants={showAnimation} initial='hidden' animate='show' exit='hidden' className={`${isDarkMode ? "text-white" : "text-black"} my-1`} style={{fontSize: '18px', lineHeight: '0'}}>
WebMasterLog
</motion.h1>
)}
</AnimatePresence>

<div className='my-1 flex-grow d-flex align-items-stretch align-self-center' style={{width: '20px'}}>
<div className={`my-1 flex-grow d-flex align-items-stretch align-self-center ${isDarkMode ? "text-white":"text-black"}`} style={{width: '20px'}}>
<FaBars onClick={toggleSidebar} />
</div>
</div>
Expand Down

0 comments on commit dde135f

Please sign in to comment.