diff --git a/src/renderer/src/components/errors/PageError.tsx b/src/renderer/src/components/errors/PageError.tsx index 96c4e31d1e..4870cb973b 100644 --- a/src/renderer/src/components/errors/PageError.tsx +++ b/src/renderer/src/components/errors/PageError.tsx @@ -4,11 +4,11 @@ import type { FC } from "react" import type { AppErrorFallbackProps } from "../common/AppErrorBoundary" import { FallbackIssue } from "../common/ErrorElement" import { Button } from "../ui/button" -import { parseError } from "./helper" +import { parseError, useResetErrorWhenRouteChange } from "./helper" export const PageErrorFallback: FC = (props) => { const { message, stack } = parseError(props.error) - + useResetErrorWhenRouteChange(props.resetError) return (
@@ -17,13 +17,13 @@ export const PageErrorFallback: FC = (props) => {
{message}
{import.meta.env.DEV && stack ? ( -
+          
             {attachOpenInEditor(stack)}
           
) : null}

- The App has a temporary problem, click the button below to try reloading the app or + {APP_NAME} has a temporary problem, click the button below to try reloading the app or another solution?

diff --git a/src/renderer/src/components/ui/divider/PanelSpliter.tsx b/src/renderer/src/components/ui/divider/PanelSpliter.tsx index 80dbfdee5e..3c875a8f32 100644 --- a/src/renderer/src/components/ui/divider/PanelSpliter.tsx +++ b/src/renderer/src/components/ui/divider/PanelSpliter.tsx @@ -8,6 +8,22 @@ export const PanelSplitter = ( ) => { const { isDragging, ...rest } = props + React.useEffect(() => { + if (!isDragging) return + const $css = document.createElement("style") + + $css.innerHTML = ` + * { + cursor: ew-resize !important; + } + ` + + document.head.append($css) + return () => { + $css.remove() + } + }, [isDragging]) + return (
{ - if (!isDragging) return - const $css = document.createElement("style") - - $css.innerHTML = ` - * { - cursor: ew-resize !important; - } - ` - - document.head.append($css) - return () => { - $css.remove() - } - }, [isDragging]) - return ( <>