Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 441c1f2

Browse files
[#46] 검색 스타일 변경
1 parent 0868869 commit 441c1f2

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

‎src/components/post-search/index.js‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,16 @@ function PostSearch({ posts }) {
2525
getOptionLabel={(option) => option.title}
2626
renderInput={(params) => (
2727
<div className="search-input-wrapper">
28-
<SearchIcon className="search-icon" />
29-
<TextField className="search-input" variant="standard" {...params} size="medium" />
28+
<TextField
29+
{...params}
30+
className="search-input"
31+
variant="standard"
32+
size="medium"
33+
InputProps={{
34+
...params.InputProps,
35+
endAdornment: <SearchIcon className="search-icon" />,
36+
}}
37+
/>
3038
</div>
3139
)}
3240
/>

‎src/components/post-search/style.scss‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
.search-input-wrapper {
66
display: none;
7-
align-items: flex-end;
7+
align-items: center;
88
width: 180px;
9-
margin-bottom: 6px;
9+
margin-top: 3px;
1010

1111
@include md {
1212
display: flex;
@@ -15,20 +15,18 @@
1515

1616
.search-icon {
1717
margin-right: 2px;
18-
font-size: 22px;
1918
color: var(--primary-text-color);
2019
}
2120

2221
.search-input {
2322
width: 100%;
2423
height: 100%;
25-
margin-left: 5px;
26-
padding-left: 2px;
27-
vertical-align: center;
2824

2925
.MuiInputBase-input {
3026
font-family: $font-family;
31-
font-size: 15px;
27+
font-size: 16px;
28+
font-weight: 500;
29+
padding-bottom: 2px !important;
3230
color: var(--primary-text-color) !important;
3331
}
3432

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /