Skip to content

Commit 669f25f

Browse files
committed
feat: style selectors
1 parent 139e875 commit 669f25f

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

src/components/TotalOrgSummary/VolunteerTrendsLineChart/VolunteerTrendsLineChart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default function VolunteerTrendsLineChart({ darkMode }) {
202202

203203
return (
204204
<div className="chart-container">
205-
{/* DATE FILTER */}
205+
{/* DATE FILTERS */}
206206
<div className="date-filter-container">
207207
<select name="timeframe-filter" id="timeframe-filter" onChange={setTimeframeFilter}>
208208
<option value="years1">This year</option>

src/components/TotalOrgSummary/VolunteerTrendsLineChart/styles.css

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
select {
2-
width: 200px;
3-
justify-self: center;
4-
margin-top: 15px;
5-
}
6-
71
.date-picker-container {
82
position: relative;
93
}
@@ -21,6 +15,7 @@ select {
2115
text-align: center;
2216
padding: 10px;
2317
position: relative;
18+
margin-top: 15px;
2419
}
2520

2621
.custom-date-range {
@@ -31,6 +26,18 @@ select {
3126
font-weight: bold;
3227
}
3328

29+
.date-filter-container {
30+
display: flex;
31+
gap: 10px;
32+
align-items: center;
33+
justify-content: center;
34+
}
35+
36+
.date-filter-container > select {
37+
margin-top: 0;
38+
width: min-content
39+
}
40+
3441
@media (max-width: 500px) {
3542
.chart-container {
3643
justify-content: start;

0 commit comments

Comments
 (0)