TagSpaces is an offline, open source, document manager with tagging support
disable full screen mode for folder properties
Stanimir40de91b2786a
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsxindex 2ed56a61c..9b60dd1cc 100644--- a/app/components/EntryContainer.tsx+++ b/app/components/EntryContainer.tsx@@ -333,10 +333,12 @@ function EntryContainer(props: Props) {}, []);const toggleFullScreen = useCallback(() => {- if (isFullscreen) {- fscreen.exitFullscreen();- } else {- fscreen.requestFullscreen(fileViewerContainer.current);+ if (openedFile.isFile) {+ if (isFullscreen) {+ fscreen.exitFullscreen();+ } else {+ fscreen.requestFullscreen(fileViewerContainer.current);+ }}}, [isFullscreen]);diff --git a/app/containers/RendererListener.ts b/app/containers/RendererListener.tsindex 83a64ce35..d6f8784a3 100644--- a/app/containers/RendererListener.ts+++ b/app/containers/RendererListener.ts@@ -80,7 +80,13 @@ export default function listen(props) {break;}case 'exit-fullscreen': {- document.exitFullscreen();+ try {+ if (document.fullscreenElement) {+ document.exitFullscreen();+ }+ } catch (e) {+ console.error('Failed to exit fullscreen mode:', e);+ }break;}case 'toggle-settings-dialog': {