Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/components/CommunityPortal/CPDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ export function CPDashboard() {
<Input
type="date"
placeholder="Select Date"
className={styles.dateFilter}
className={[styles.dateFilter, styles.rectangularDropdown]
.filter(Boolean)
.join(' ')}
value={selectedDate}
onChange={e => setSelectedDate(e.target.value)}
style={{ marginTop: '10px' }}
Expand All @@ -410,23 +412,23 @@ export function CPDashboard() {
</div>
</div>

<div className={styles.filterItem}>
<div className={`${styles.filterItem} ${styles.compactDropdownFilter}`}>
<label htmlFor="branches">Branches</label>
<Input type="select">
<Input type="select" className={styles.rectangularDropdown}>
<option>Select branches</option>
</Input>
</div>

<div className={styles.filterItem}>
<div className={`${styles.filterItem} ${styles.compactDropdownFilter}`}>
<label htmlFor="themes">Themes</label>
<Input type="select">
<Input type="select" className={styles.rectangularDropdown}>
<option>Select themes</option>
</Input>
</div>

<div className={styles.filterItem}>
<div className={`${styles.filterItem} ${styles.compactDropdownFilter}`}>
<label htmlFor="categories">Categories</label>
<Input type="select">
<Input type="select" className={styles.rectangularDropdown}>
<option>Select categories</option>
</Input>
</div>
Expand Down
12 changes: 12 additions & 0 deletions src/components/CommunityPortal/CPDashboard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,25 @@
background-size: 1em;
}

.rectangularDropdown {
border-radius: 0 !important;
}

.filterItem label {
display: block;
font-weight: 600;
color: #34495e;
margin-bottom: 8px;
}

.compactDropdownFilter label {
margin-bottom: 4px;
}

.compactDropdownFilter select {
margin-top: 4px;
}

.filterItem input[type='radio'],
.filterItem input[type='checkbox'] {
display: inline-block; /* <– keeps input on same line as text */
Expand Down
Loading