Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed alignment of arrows #142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
5 changes: 5 additions & 0 deletions src/assets/scss/components/dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

.curr {
margin-top: 0.6em;
margin-left: -1.2em;
}
}

Expand Down Expand Up @@ -97,6 +98,10 @@
opacity: 0.08;
}

.dropdown-button{
display: flex;
}

@media only screen and (max-width: 500px) {
.dropdown-container {
padding: 0px;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/scss/components/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

.eos-icons {
padding: 0px;
padding: 7px 0px 0px 0px;
}
}

Expand Down
29 changes: 17 additions & 12 deletions src/components/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,23 @@ const Dropdown = (props) => {
<div className='dropdown-main'>
<div className='filter-title'>{title}</div>
<div className='dropdown-container' ref={reference} {...rest}>
<Button
type='button'
className='btn btn-transparent flex flex-row'
onClick={handleDropdownState}
>
{dropdownState ? (
<EOS_KEYBOARD_ARROW_UP className='eos-icons' />
) : (
<EOS_KEYBOARD_ARROW_DOWN className='eos-icons' />
)}
&nbsp; <div className='curr'> {curr} </div>
</Button>
<div className='dropdown-button'>
<div>
<Button
type='button'
className='btn btn-transparent flex flex-row'
onClick={handleDropdownState}
>
{dropdownState ? (
<EOS_KEYBOARD_ARROW_UP className='eos-icons' />
) : (
<EOS_KEYBOARD_ARROW_DOWN className='eos-icons' />
)}
&nbsp;
</Button>
</div>
<div className='curr'> {curr} </div>
</div>
<div
className={`dropdown ${
dropdownState
Expand Down