Skip to content

Commit

Permalink
Fixed UI Issues in header
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankhv committed Jan 18, 2025
1 parent a14cdc5 commit e7e8ca0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Header/DarkModeButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function DarkModeButton() {
return (
<>
<Tooltip
placement="auto"
placement="bottom"
isOpen={tooltipOpen}
target="darkModeTooltip"
toggle={toggleTooltip}
Expand Down
14 changes: 11 additions & 3 deletions src/components/Header/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.navbar {
z-index: 100;
white-space: nowrap;
margin-bottom: 20px;
/* margin-bottom: 20px; */
}

.timer-message-section {
Expand Down Expand Up @@ -92,13 +92,21 @@
}

@media screen and (min-width: 1400px) and (max-width: 1700px) {
.owner-message {
/* .owner-message {
display: none;
}
} */
}

@media screen and (max-width: 769px) {
.responsive-spacing{
margin-right: 5px;
}
}
.header-margin{
height : 20px;
background-color: #1B2A41 ;
}
.header-margin-light{
height : 20px;
background-color: #fff;
}
3 changes: 2 additions & 1 deletion src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export function Header(props) {
) : (
<NavItem className="responsive-spacing">
<NavLink tag={Link} to="/teamlocations">
{TEAM_LOCATIONS}
<span className="dashboard-text-link">{TEAM_LOCATIONS}</span>
</NavLink>
</NavItem>
)}
Expand Down Expand Up @@ -587,6 +587,7 @@ export function Header(props) {
{props.auth.isAuthenticated && unreadNotifications?.length > 0 ? (
<NotificationCard notification={unreadNotifications[0]} />
) : null}
<div className={darkMode ? 'header-margin' : 'header-margin-light'} />
</div>
);
}
Expand Down

0 comments on commit e7e8ca0

Please sign in to comment.