Fixed the responsive design and the header
This commit is contained in:
parent
07c1f8366a
commit
7ba4d29253
4 changed files with 18 additions and 6 deletions
|
@ -57,7 +57,7 @@ const Header: React.FC<HeaderProps> = ({
|
||||||
<header>
|
<header>
|
||||||
{showToggle && showHistoryModelsToggle && (
|
{showToggle && showHistoryModelsToggle && (
|
||||||
<button onClick={toggleDivs} className="nav-btn show-hide-btn">
|
<button onClick={toggleDivs} className="nav-btn show-hide-btn">
|
||||||
{showDivs ? 'Hide History/Models' : 'Show History/Models'}
|
{showDivs ? 'Hide' : 'Show'}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<nav ref={dropdownRef} className={`nav-links ${menuOpen ? "active" : ""}`}>
|
<nav ref={dropdownRef} className={`nav-links ${menuOpen ? "active" : ""}`}>
|
||||||
|
@ -71,9 +71,9 @@ const Header: React.FC<HeaderProps> = ({
|
||||||
<span></span>
|
<span></span>
|
||||||
<span></span>
|
<span></span>
|
||||||
</div>
|
</div>
|
||||||
<div className="header-button header-logo">
|
<div className="header-logo">
|
||||||
{/* AI logo or text */}
|
{/* AI logo or text */}
|
||||||
</div>
|
</div>
|
||||||
<div className="login-button-container">
|
<div className="login-button-container">
|
||||||
<Login />
|
<Login />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -118,4 +118,7 @@ header {
|
||||||
.show-hide-btn{
|
.show-hide-btn{
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
align-self: left;
|
align-self: left;
|
||||||
}
|
position: absolute;
|
||||||
|
left: 10vw;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
|
@ -102,7 +102,6 @@
|
||||||
|
|
||||||
.header-logo {
|
.header-logo {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: -40px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hamburger.open {
|
.hamburger.open {
|
||||||
|
@ -150,6 +149,16 @@
|
||||||
.header-login-button {
|
.header-login-button {
|
||||||
right: 5vh; /* Keep login button visible */
|
right: 5vh; /* Keep login button visible */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.show-hide-btn{
|
||||||
|
width: fit-content;
|
||||||
|
left: 20vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-logo {
|
||||||
|
background-image: url(../../public/img/logo-small.png);
|
||||||
|
width: 4em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive adjustments for the settings */
|
/* Responsive adjustments for the settings */
|
||||||
|
|
BIN
public/img/logo-small.png
Normal file
BIN
public/img/logo-small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
Loading…
Reference in a new issue