diff --git a/assets/icon.icns b/assets/icon.icns
index c2213ce..fd09bfa 100644
Binary files a/assets/icon.icns and b/assets/icon.icns differ
diff --git a/assets/icon.ico b/assets/icon.ico
index 98948ea..2a6d657 100644
Binary files a/assets/icon.ico and b/assets/icon.ico differ
diff --git a/src/renderer/App.css b/src/renderer/App.css
index e65ed48..4f4e1f2 100644
--- a/src/renderer/App.css
+++ b/src/renderer/App.css
@@ -1,4 +1,11 @@
body {
- overflow-x: hidden;
- overflow-y: hidden;
-}
\ No newline at end of file
+ overflow-x: hidden;
+ overflow-y: hidden;
+}
+
+/* Fix cursor turning white while transitioning the input border color on Windows */
+body .ant-input-outlined,
+body .ant-input-number-outlined,
+body .ant-select-outlined .ant-select-selector {
+ transition: none !important;
+}
diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx
index 0688a1b..c8e4607 100644
--- a/src/renderer/App.tsx
+++ b/src/renderer/App.tsx
@@ -1,4 +1,4 @@
-import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom';
+import { HashRouter, Navigate, Route, Routes } from 'react-router-dom';
import 'antd/dist/reset.css';
import '@ant-design/v5-patch-for-react-19';
import { useMemo } from 'react';
@@ -24,7 +24,7 @@ export function AppWithoutProviders() {
-
+
{routes}
@@ -34,7 +34,7 @@ export function AppWithoutProviders() {
/>
-
+
>
diff --git a/src/renderer/components/content/ResourceSelectorModal.tsx b/src/renderer/components/content/ResourceSelectorModal.tsx
index b014e69..be6b123 100644
--- a/src/renderer/components/content/ResourceSelectorModal.tsx
+++ b/src/renderer/components/content/ResourceSelectorModal.tsx
@@ -187,13 +187,13 @@ export function ResourceSelectorModal({
} = useDirEntries(currentDir.join('/'), resourceType, filterModOnly);
const modalOnOk = useCallback(() => {
if (selectedEntry !== null && selectedEntry.type === 'File') {
- if (currentDir.length === 0) {
+ if (currentDir.length === pathPrefix.length) {
onSelect(selectedEntry.path);
} else {
onSelect(`${currentDir}/${selectedEntry.path}`);
}
}
- }, [currentDir, onSelect, selectedEntry]);
+ }, [currentDir, onSelect, pathPrefix, selectedEntry]);
const modalOnCancel = useCallback(() => {
setSelectedEntry(null);
onCancel();