Skip to content

Commit

Permalink
fix width
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMoshkovich committed Oct 7, 2023
1 parent cad0374 commit b166de0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Components/SearchBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ export default function SearchBar({fileOpen}) {
error={!!error.length}
placeholder="Search"
variant="outlined"
sx={{width: '275px', height: '50px'}}
sx={{width: '100%'}}
InputProps={{
...params.InputProps,
startAdornment: (
<InputAdornment position="start">
<SearchIcon sx={{opacity: 0.5}} color="secondary"/>
<SearchIcon sx={{opacity: 0.8}} color="secondary"/>
</InputAdornment>
),
endAdornment: inputText.length > 0 ? (
Expand All @@ -117,7 +117,7 @@ export default function SearchBar({fileOpen}) {
setError('')
navWithSearchParamRemoved(navigate, location.pathname, QUERY_PARAM)
}}
style={{padding: 0, opacity: 0.5}}
style={{padding: 0, opacity: 0.8}}
>
<HighlightOffIcon className="icon-share" size="inherit" color="secondary"/>
</IconButton>
Expand Down
2 changes: 1 addition & 1 deletion src/Containers/CadView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ export default function CadView({
>
<ControlsGroup fileOpen={() => loadLocalFile(navigate)}/>
{isSearchBarVisible && isSearchVisible &&
<Box sx={{marginTop: '14px'}}>
<Box sx={{marginTop: '10px', width: '100%'}}>
<SearchBar fileOpen={() => loadLocalFile(navigate, appPrefix, handleBeforeUnload)}/>
</Box>
}
Expand Down

0 comments on commit b166de0

Please sign in to comment.