Skip to content

Commit

Permalink
Make advanced search options more discoverable (#3510)
Browse files Browse the repository at this point in the history
  • Loading branch information
flodolo authored Jan 7, 2025
1 parent 5efb934 commit cf74554
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion translate/src/modules/search/components/SearchBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
font-size: 14px;
font-weight: 300;
line-height: 23px;
padding: 5px 33px 5px 37px;
padding: 5px 36px 5px 37px;
width: 100%;
}

Expand Down
9 changes: 7 additions & 2 deletions translate/src/modules/search/components/SearchPanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,20 @@
position: absolute;
width: 43px;

&:hover::before {
&:hover {
color: var(--white-1);
}

.fas {
font-size: 17px;
margin-left: 10px;
margin-left: 1px;
margin-top: 9px;
}

.fa-caret-down {
font-size: 13px;
transform: translate(35%, -25%);
}
}

& .menu {
Expand Down
5 changes: 4 additions & 1 deletion translate/src/modules/search/components/SearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ export function SearchPanel({
return (
<div className='search-panel'>
<div className='visibility-switch' onClick={toggleVisible}>
<span className='fas fa-search'></span>
<span className='fa-stack'>
<i className='fas fa-search fa-stack-2x'></i>
<i className='fas fa-caret-down fa-stack-1x'></i>
</span>
</div>
{visible ? (
<SearchPanelDialog
Expand Down

0 comments on commit cf74554

Please sign in to comment.