Fixed the responsive design and the header

This commit is contained in:
sageTheDM 2024-10-08 10:24:13 +02:00
parent 07c1f8366a
commit 7ba4d29253
4 changed files with 18 additions and 6 deletions

View file

@ -57,7 +57,7 @@ const Header: React.FC<HeaderProps> = ({
<header>
{showToggle && showHistoryModelsToggle && (
<button onClick={toggleDivs} className="nav-btn show-hide-btn">
{showDivs ? 'Hide History/Models' : 'Show History/Models'}
{showDivs ? 'Hide' : 'Show'}
</button>
)}
<nav ref={dropdownRef} className={`nav-links ${menuOpen ? "active" : ""}`}>
@ -71,9 +71,9 @@ const Header: React.FC<HeaderProps> = ({
<span></span>
<span></span>
</div>
<div className="header-button header-logo">
{/* AI logo or text */}
</div>
<div className="header-logo">
{/* AI logo or text */}
</div>
<div className="login-button-container">
<Login />
</div>

View file

@ -118,4 +118,7 @@ header {
.show-hide-btn{
width: fit-content;
align-self: left;
position: absolute;
left: 10vw;
cursor: pointer;
}

View file

@ -102,7 +102,6 @@
.header-logo {
position: relative;
margin-left: -40px;
}
.hamburger.open {
@ -150,6 +149,16 @@
.header-login-button {
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 */

BIN
public/img/logo-small.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB