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

#197: width of searchfield #226

Merged
merged 1 commit into from
Feb 22, 2023
Merged
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
6 changes: 3 additions & 3 deletions src/components/Search/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useDamViewModel } from 'store/DamStore/DamViewModelContextProvider';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSearch } from '@fortawesome/free-solid-svg-icons/faSearch';
import { observer } from 'mobx-react';

import styles from './index.module.scss';
const Search = observer(() => {
const damListViewModel = useDamViewModel();
const { t } = useTranslation('common');
Expand Down Expand Up @@ -51,7 +51,7 @@ const Search = observer(() => {
const filterBy = () => true;

return (
<div className={`input-group d-flex mb-0 pe-2 wr_input_search bg-theme `}>
<div className={`input-group d-flex mb-0 pe-2 wr_input_search bg-theme ${styles.width}`}>
<button
type="button"
id="button-search"
Expand All @@ -70,7 +70,7 @@ const Search = observer(() => {
options={options}
className="col bg-theme"
inputProps={{
className: `border-0 w-100 shadow-none bg-theme fw-semibold `,
className: `border-0 w-100 shadow-none bg-theme fw-semibold ${styles.input}`,
}}
onKeyDown={handleKeyDown}
onChange={handleChange}
Expand Down
9 changes: 9 additions & 0 deletions src/components/Search/index.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.width {
max-width: 656px;
}
input {
&::placeholder {
color: #c0c0c0;
font-weight: 400;
}
}