Skip to content

Commit

Permalink
Handle short desktop browser windows, by allowing vertical pane scrol…
Browse files Browse the repository at this point in the history
…ling
  • Loading branch information
mileswwatkins committed Nov 3, 2024
1 parent afb8f96 commit 2324c52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
}

.FilterPane {
padding-top: 1rem;
flex-basis: 30%;
min-width: 320px;
padding-left: 1.5rem;
padding-right: 1rem;
padding-bottom: 1.5rem;
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 4rem;
justify-content: space-between;
background-color: #faf3ce;
overflow-y: scroll;
}

a {
Expand Down
3 changes: 1 addition & 2 deletions src/components/Filters.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.Filters-Reset {
.Filter-Reset {
margin: 0;
margin-bottom: 1.5rem;
font-size: 1rem;
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/Filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Filters = ({
const afterDateMax = sub(beforeDate || beforeDateMax, { days: 1 });

return (
<section className="Filters">
<section>
<form onSubmit={(e) => e.preventDefault()}>
<div className="Filter-Text">
I'd like to{" "}
Expand Down Expand Up @@ -139,7 +139,7 @@ const Filters = ({
</div>
<input
type="reset"
className="Filters-Reset"
className="Filter-Reset"
value="Reset filters"
onClick={onReset}
></input>
Expand Down

0 comments on commit 2324c52

Please sign in to comment.