Skip to content

Commit

Permalink
Fix the header items alignment and add the responsiveness (#1475)
Browse files Browse the repository at this point in the history
Co-authored-by: Priyankar Pal <[email protected]>
  • Loading branch information
Shivam-Katare and priyankarpal authored Feb 28, 2024
1 parent 194cb51 commit ca54111
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/common/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ const Header = () => {
}`}
data-testid="app-header"
>
<span>
<span className="pl-0 md:pl-[50px]">
<Link className="app-logo" data-testid="app-logo" to="/">
<span className="sr-only">React Play</span>
</Link>
</span>
<div className="app-header-search">
<div className="app-header-search pl-0 xl:pl-[130px]">
{showHideBits.showSearch && <SearchBox reset={reset} />}
</div>

Expand Down
13 changes: 11 additions & 2 deletions src/common/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
display: none;
}

@media (min-width: 768px) {
@media (min-width: 1217px) {
.navbar-toggler {
display: none;
}
Expand Down Expand Up @@ -175,7 +175,7 @@
margin-right: 1rem;
}

@media screen and (max-width: 768px) {
@media screen and (max-width: 1217px) {
.navbar-collapse.show {
display: block;
position: fixed;
Expand Down Expand Up @@ -371,6 +371,15 @@
} */
}

@media screen and (max-width: 1217px) {
.header-links > li > .app-header-btn.app-header-btn--secondary {
color: var(--color-neutral-80);
}
.menu-events {
margin: 0.4rem 0 0rem 0;
}
}

/* searchs Modal */
.modal-share {
position: fixed;
Expand Down
21 changes: 19 additions & 2 deletions src/common/search/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@
color: var(--color-neutral-10);
}

@media screen and (max-width: 576px) {
@media screen and (max-width: 1217px) {
.filter {
padding: 0.5rem 0;
display: grid;
justify-content: start;
}
}

@media screen and (max-width: 576px) {
.filter .search-input-icon {
left: 0.6rem;
width: 20px;
Expand Down Expand Up @@ -135,6 +139,19 @@
}
}

@media screen and (max-width:494px) {
.filter {
display: grid;
justify-content: center;
}
}

@media screen and (max-width: 408px) {
.filter .filter-area {
width: 198px;
}
}

/* Filters Modal */
.modal-filter {
position: fixed;
Expand Down

0 comments on commit ca54111

Please sign in to comment.