Skip to content

Commit

Permalink
Merge pull request #1 from hmydgz/dev
Browse files Browse the repository at this point in the history
modify the webview part
  • Loading branch information
hmydgz authored Jul 5, 2024
2 parents 7527b29 + dd5fc82 commit 8b63bff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/components/ProjectList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const ProjectList: React.FC = () => {
const [store] = useStore()
function getDir(path: string) {
let _path = path.replace(store.baseUrl, '')
if (_path.startsWith('\\')) return _path.substring(1, _path.length)
return path.replace(store.baseUrl, '')
if (_path.startsWith('\\')) return _path.substring(1, _path.length).replace(/\\/g, '/')
return path.replace(store.baseUrl, '').replace(/\\/g, '/')
}

return (<>
Expand Down
2 changes: 1 addition & 1 deletion web/components/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const SearchInput: React.FC = () => {
<input
ref={inputRef}
value={value}
placeholder="Search"
placeholder="Enter Search"
onChange={e => setValue(e.target.value)}
onKeyDown={handleSearch}
/>
Expand Down

0 comments on commit 8b63bff

Please sign in to comment.