Skip to content

Commit 8a1631e

Browse files
committed
aligned collapse arrow
1 parent 7e472a2 commit 8a1631e

File tree

3 files changed

+35
-15
lines changed

3 files changed

+35
-15
lines changed

src/app/components/Actions/DropDown.tsx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import Select from 'react-select';
22
import React from 'react';
33

4-
const DropDown = ({ dropdownSelection, setDropdownSelection }: { dropdownSelection: string; setDropdownSelection: (value: string) => void }): JSX.Element => {
4+
const DropDown = ({
5+
dropdownSelection,
6+
setDropdownSelection,
7+
}: {
8+
dropdownSelection: string;
9+
setDropdownSelection: (value: string) => void;
10+
}): JSX.Element => {
511
const handleChange = (selected: { value: string; label: string }) => {
6-
setDropdownSelection(selected.value);
12+
setDropdownSelection(selected.value);
713
};
814

915
const options = [
@@ -12,12 +18,14 @@ const DropDown = ({ dropdownSelection, setDropdownSelection }: { dropdownSelecti
1218
];
1319

1420
return (
15-
<Select
16-
placeholder="Select Hook"
17-
onChange={handleChange}
18-
options={options}
19-
value={options.find((option) => option.value === dropdownSelection)}
20-
/>
21+
<div className='dropdown-container'>
22+
<Select
23+
placeholder='Select Hook'
24+
onChange={handleChange}
25+
options={options}
26+
value={options.find((option) => option.value === dropdownSelection)}
27+
/>
28+
</div>
2129
);
2230
};
2331

src/app/styles/components/_buttons.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,7 @@
313313
/* Container for arrow and collapse text */
314314
#arrow {
315315
height: 44px;
316-
display: grid;
317-
grid-template-columns: 45px 1fr;
316+
display: flex;
318317
align-items: center;
319318
border-bottom: 1px solid #e5e7eb;
320319
background-color: white;
@@ -366,7 +365,6 @@
366365
color: #6b7280;
367366
font-size: 1.1rem;
368367
font-weight: 500;
369-
padding-left: 0.5rem;
370368
font-family: 'Outfit', sans-serif;
371369
transition: color 0.2s ease;
372370
}

src/app/styles/layout/_actionContainer.scss

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@
1616
}
1717

1818
.actionToolContainer {
19-
color: #374151;
2019
display: flex;
21-
justify-content: space-between;
2220
align-items: center;
23-
height: 44px;
2421
border-bottom: 1px solid #e5e7eb;
25-
padding: 0 8px;
2622
}
2723

2824
.toggle-record {
@@ -32,3 +28,21 @@
3228
.clear-button-container {
3329
padding: 16px;
3430
}
31+
32+
.dropdown-container {
33+
padding: 4px 16px;
34+
}
35+
36+
.react-select__control {
37+
background-color: #f3f4f6 !important;
38+
border: none !important;
39+
border-radius: 0.375rem !important;
40+
min-height: 30px !important;
41+
box-shadow: none !important;
42+
}
43+
44+
.react-select__single-value {
45+
color: #374151 !important;
46+
font-size: 0.875rem !important;
47+
font-weight: 500 !important;
48+
}

0 commit comments

Comments
 (0)