Skip to content

Commit

Permalink
fix: replace file to save & ui fix (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewChenShow authored Jun 11, 2024
1 parent e9aafa6 commit a5a704e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/searchtext/search-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const SearchInput: React.FC<SearchInputProps> = ({
<div onClick={onReplace} className="music-monaco-editor-replace">
<Replace
style={{
width: '20px',
height: '20px',
width: '15px',
height: '15px',
}}
/>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/components/searchtext/search-result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ const SearchResult: React.FC<SearchResultProps> = ({
>
<Replace
style={{
width: '20px',
height: '20px',
width: '15px',
height: '15px',
marginBottom: '5px',
}}
/>
</div>
Expand Down
10 changes: 7 additions & 3 deletions src/components/searchtext/search-text.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@

.search-results-replace {
display: inline-block;
width: 20px;
height: 20px;
width: 15px;
height: 15px;
cursor: pointer;
align-items: center;
margin: 0 5px 0 5px;
}

Expand Down Expand Up @@ -96,7 +97,6 @@
.search-result-search-container {
display: flex;
background: var(--monaco-editor-background);
display: flex;
align-items: center;
padding-right: 5px;
}
Expand Down Expand Up @@ -137,6 +137,10 @@
height: 20px;
}

.music-monaco-editor-replace {
margin-bottom: 5px;
}

.search-result-replace-switch {
display: flex;
padding-left: 5px;
Expand Down
1 change: 1 addition & 0 deletions src/multi/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ const MultiPrivateEditorComp = React.forwardRef<
}
}
refreshFiles(obj);
saveFile();
}, [getAllFiles]);

return (
Expand Down

0 comments on commit a5a704e

Please sign in to comment.