Skip to content

Commit

Permalink
Merge pull request #30 from hytech-racing/sizing-fix
Browse files Browse the repository at this point in the history
Sizing fix
  • Loading branch information
skyraal authored Oct 9, 2024
2 parents cb408ab + 86781ed commit 30b5d33
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export default function App() {
<DataTable data={filteredData} />
</div>

<div className="preview-contain-result">
<PreviewCard />
</div>
<SearchBar setFilteredData={setFilteredData} />
</div>
<div className="preview-contain-result">
<PreviewCard />
</div>
<SearchBar setFilteredData={setFilteredData} />
</div>
</div>

Expand Down
10 changes: 8 additions & 2 deletions src/css/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@
flex: 1;
height: 500px;
padding-top: 50px;
flex-direction: column;
}

.results-container {
display: flex;
flex-direction: row;
}

.footer {
padding: 2em;
text-align: center;
background: #9b8b5de5;
color: white;
}
}

11 changes: 5 additions & 6 deletions src/css/SearchBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@

.Search {
display: flex;
max-width: 360px;
font-size: 15px;

}


.search-filter-container {
background-color: #f8f9fa;
padding: 20px;
Expand All @@ -29,7 +33,7 @@
}

.search-filter-container h1 {
font-size: 1.8em;
font-size: 25px;
text-align: center;
color: #333;
margin-bottom: 20px;
Expand All @@ -40,7 +44,6 @@
padding: 12px;
border-radius: 30px;
border: 1px solid #ddd;
font-size: 1em;
outline: none;
transition: box-shadow 0.2s ease-in-out;
}
Expand All @@ -60,16 +63,13 @@
.filter-options label {
display: flex;
flex-direction: column;
font-size: 1em;
color: #555;
margin-bottom: 10px;
flex: 1 1 48%;
}

.filter-select {
margin-top: 8px;
padding: 10px;
font-size: 1em;
border-radius: 10px;
border: 1px solid #ddd;
background-color: #fff;
Expand All @@ -82,7 +82,6 @@
}

.date-picker {
margin-top: 8px;
padding: 10px;
font-size: 1em;
border-radius: 10px;
Expand Down

0 comments on commit 30b5d33

Please sign in to comment.