diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b3fcbdaf..f29b4b19 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -41,7 +41,7 @@ } }, "productName": "MDX Editor", - "version": "0.9.6", + "version": "0.9.7", "identifier": "editor.runjs.cool", "plugins": { "updater": { diff --git a/src/components/FileTree.tsx b/src/components/FileTree.tsx index 632bdeb2..6540b431 100644 --- a/src/components/FileTree.tsx +++ b/src/components/FileTree.tsx @@ -562,15 +562,12 @@ title: ${file} return (
- {isMacOS ? ( -
- ) : ( -
- )}
diff --git a/src/components/Header.js b/src/components/Header.js index a760f61b..e56cde17 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -5,6 +5,7 @@ import React from 'react' import { Sun, MoonStar } from 'lucide-react' import { Button } from '@/components/ui/button' import TopBar from './TopBar' +import { isMacOS } from './utils/file-tree-util' export default function Header({ children, logo }) { return ( @@ -13,7 +14,8 @@ export default function Header({ children, logo }) {
diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index 38fbd714..1c6e31ea 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -54,7 +54,7 @@ export function MdiClose(props: SVGProps) { } export default function TitleBar() { if (isMacOS) { - return
+ return null } return (