The swiss army knife of lossless video/audio editing
improve dialogs
Mikael Finstad2511175d5338
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsxindex 8efe3ea2..a2d27718 100644--- a/src/renderer/src/App.tsx+++ b/src/renderer/src/App.tsx@@ -1216,7 +1216,7 @@ function App() {: await captureFrameFromTag({ customOutDir, filePath, time: currentTime, captureFormat, quality: captureFrameQuality, video });if (simpleMode && !prefersReducedMotion) shootConfetti();- if (!hideAllNotifications) openExportFinishedDialog({ filePath: outPath, children: `${i18n.t('Screenshot captured to:')} ${outPath}` });+ if (!hideAllNotifications) openExportFinishedDialog({ filePath: outPath, children: <div style={{ wordWrap: 'break-word' }}>{i18n.t('Screenshot captured to:')} {outPath}</div> });}, i18n.t('Failed to capture frame'));} finally {setWorking(undefined);@@ -1275,7 +1275,7 @@ function App() {}if (!hideAllNotifications && lastOutPath != null) {showOsNotification(i18n.t('Frames have been extracted'));- openExportFinishedDialog({ filePath: lastOutPath, children: i18n.t('Frames extracted to: {{path}}', { path: outputDir }) });+ openExportFinishedDialog({ filePath: lastOutPath, children: <div style={{ wordWrap: 'break-word' }}>{i18n.t('Frames extracted to: {{path}}', { path: outputDir })}</div> });}} catch (err) {showOsNotification(i18n.t('Failed to extract frames'));diff --git a/src/renderer/src/components/GenericDialog.tsx b/src/renderer/src/components/GenericDialog.tsxindex 514b5d39..a7225d19 100644--- a/src/renderer/src/components/GenericDialog.tsx+++ b/src/renderer/src/components/GenericDialog.tsx@@ -132,7 +132,7 @@ export function useDialog() {});}), [showGenericDialog, t]);- const openExportFinishedDialog = useCallback(async ({ filePath, children, width = '30em' }: {+ const openExportFinishedDialog = useCallback(async ({ filePath, children, width }: {filePath: string,children: ReactNode,width?: string,