Skip to content

Commit d8d28b3

Browse files
Fix search bar behavior in Community Portal
1 parent 32af6aa commit d8d28b3

2 files changed

Lines changed: 22 additions & 9 deletions

File tree

src/components/CommunityPortal/CPDashboard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function CPDashboard() {
100100
</div>
101101
</header>
102102

103-
<Row>
103+
<Row className={styles['dashboard-content']}>
104104
<Col md={3} className={styles['dashboard-sidebar']}>
105105
<div className={styles['filter-section']}>
106106
<h4>Search Filters</h4>

src/components/CommunityPortal/CPDashboard.module.css

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
2626
}
2727

28-
.dashboard-controls {
29-
display: flex;
30-
align-items: center;
28+
.dashboard-content{
29+
width: 100%;
30+
padding-left: 20px;
31+
margin: 0;
3132
}
3233

3334
.dashboard-search {
@@ -96,7 +97,7 @@
9697
/* blue circular search button inside the bar */
9798
.dashboard-search-icon-btn {
9899
position: absolute;
99-
right: 4px;
100+
right: 1px;
100101
top: 50%;
101102
transform: translateY(-50%);
102103
width: 34px;
@@ -129,8 +130,10 @@
129130
}
130131

131132
.dashboard-sidebar {
132-
padding: 30px;
133-
background: #f9f9f9;
133+
padding: 20px;
134+
display: flex;
135+
justify-content: flex-start;
136+
background: #ffffff;
134137
border-radius: 12px;
135138
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
136139
}
@@ -142,18 +145,27 @@
142145
font-weight: 600;
143146
}
144147

145-
.filter-item input,
148+
.filter-item input:not([type="checkbox"]):not([type="radio"]),
146149
.filter-item select {
147150
padding: 12px 15px;
148151
margin-top: 10px;
149-
border: 1px solid #ddd;
150152
border-radius: 8px;
151153
width: 100%;
154+
height: auto;
152155
font-size: 1rem;
153156
background: #ffffff;
154157
transition: all 0.3s ease;
155158
}
156159

160+
.filter-item input[type="radio"],
161+
.filter-item input[type="checkbox"] {
162+
display: inline-block; /* <– keeps input on same line as text */
163+
width: auto;
164+
padding: 0;
165+
margin: 5px 0px 0px 120px; /* top margin to line up under "Dates" */
166+
vertical-align: middle;
167+
}
168+
157169
.filter-item input:focus,
158170
.filter-item select:focus {
159171
border-color: #2c3e50;
@@ -162,6 +174,7 @@
162174
}
163175

164176
.dashboard-main {
177+
width: 65%;
165178
padding: 30px;
166179
background: #ffffff;
167180
border-radius: 12px;

0 commit comments

Comments
 (0)