Skip to content

Commit 53e3ff4

Browse files
committed
chore: 🤖 release v0.9.7
1 parent 424bfab commit 53e3ff4

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242
},
4343
"productName": "MDX Editor",
44-
"version": "0.9.6",
44+
"version": "0.9.7",
4545
"identifier": "editor.runjs.cool",
4646
"plugins": {
4747
"updater": {

src/components/FileTree.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -562,15 +562,12 @@ title: ${file}
562562

563563
return (
564564
<div className="relative w-full overflow-auto h-screen flex flex-col">
565-
{isMacOS ? (
566-
<div data-tauri-drag-region className="h-6" />
567-
) : (
568-
<div data-tauri-drag-region className="h-[30px]" />
569-
)}
570565
<div
571566
data-tauri-drag-region
572567
className={clsx(
573-
'pb-3 px-3 bg-white dark:bg-gray-900 sticky top-0 left-0 z-10 border-b flex-none dark:shadow-highlight/4'
568+
'pb-3 px-3 bg-white dark:bg-gray-900 sticky top-0 left-0 z-10 border-b flex-none dark:shadow-highlight/4',
569+
isMacOS && 'pt-6',
570+
!isMacOS && 'pt-[30px]'
574571
)}
575572
>
576573
<div className="h-9 flex items-center">

src/components/Header.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import React from 'react'
55
import { Sun, MoonStar } from 'lucide-react'
66
import { Button } from '@/components/ui/button'
77
import TopBar from './TopBar'
8+
import { isMacOS } from './utils/file-tree-util'
89

910
export default function Header({ children, logo }) {
1011
return (
@@ -13,7 +14,8 @@ export default function Header({ children, logo }) {
1314
<div
1415
data-tauri-drag-region
1516
className={clsx(
16-
'relative top-0 z-20 flex-none pb-3 px-5 flex items-center justify-between antialiased select-none border-b dark:shadow-lg'
17+
'relative top-0 z-20 flex-none pb-3 px-5 flex items-center justify-between antialiased select-none border-b dark:shadow-lg',
18+
isMacOS && 'pt-6'
1719
)}
1820
style={{ fontFeatureSettings: '"cv02", "cv03", "cv04", "cv11"' }}
1921
>

src/components/TopBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function MdiClose(props: SVGProps<SVGSVGElement>) {
5454
}
5555
export default function TitleBar() {
5656
if (isMacOS) {
57-
return <div data-tauri-drag-region className="h-6" />
57+
return null
5858
}
5959
return (
6060
<div
File renamed without changes.

0 commit comments

Comments
 (0)