Skip to content

Commit

Permalink
fix: fixed edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Afterdie committed Dec 9, 2023
1 parent 6c31861 commit 97f55fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/reusableComponents/Darkmode/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
cursor: pointer;
}

.toggle-container{
position: absolute;
top: 0px;
@media (min-width: 840px){
.toggle-container {
position: absolute;
top: 0px;
}
}
2 changes: 1 addition & 1 deletion src/reusableComponents/Darkmode/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Darkmode = () => {
};

return (
<div className="toggle-container">
<div className={`${location.href.includes('login') ? "toggle-container" : ""}`}>
<button onClick={darkModeToggle} className="theme-toggle-btn">
<CustomizedSwitch modeStatus={modeStatus} />
</button>
Expand Down

0 comments on commit 97f55fc

Please sign in to comment.