Skip to content

Commit

Permalink
fix: input css style (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewChenShow authored Mar 21, 2024
1 parent daaf17d commit 72231d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/searchtext/search-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SearchInput: React.FC<SearchInputProps> = ({ searchText, setSearchText, on
onChange={(e) => setSearchText(e.target.value)}
placeholder="搜索(上下键切换)"
/>
<div onClick={() => onClose(false)}
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center' }} onClick={() => onClose(false)}
className="music-monaco-editor--close">
<Close
style={{
Expand Down
4 changes: 3 additions & 1 deletion src/components/searchtext/search-text.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
z-index: 1;
background: var(--monaco-editor-background);
display: flex;
justify-content: space-between;
align-items: center;
padding-right: 5px;
}

Expand Down Expand Up @@ -68,11 +68,13 @@
color: var(--monaco-list-focusForeground)
}
.search-result-input {
flex: 1;
border-radius: 2px;
background: var(--monaco-list-focusBackground);
border: 0.5px solid;
margin: 5px;
margin-right: 5px;
min-width: 70px;
height: 20px;
color: var(--monaco-list-focusForeground)
}

0 comments on commit 72231d5

Please sign in to comment.