Skip to content

Commit

Permalink
chore: 🤖 release v0.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi1520 committed Jul 28, 2024
1 parent 424bfab commit 53e3ff4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}
},
"productName": "MDX Editor",
"version": "0.9.6",
"version": "0.9.7",
"identifier": "editor.runjs.cool",
"plugins": {
"updater": {
Expand Down
9 changes: 3 additions & 6 deletions src/components/FileTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -562,15 +562,12 @@ title: ${file}

return (
<div className="relative w-full overflow-auto h-screen flex flex-col">
{isMacOS ? (
<div data-tauri-drag-region className="h-6" />
) : (
<div data-tauri-drag-region className="h-[30px]" />
)}
<div
data-tauri-drag-region
className={clsx(
'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'
'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',
isMacOS && 'pt-6',
!isMacOS && 'pt-[30px]'
)}
>
<div className="h-9 flex items-center">
Expand Down
4 changes: 3 additions & 1 deletion src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -13,7 +14,8 @@ export default function Header({ children, logo }) {
<div
data-tauri-drag-region
className={clsx(
'relative top-0 z-20 flex-none pb-3 px-5 flex items-center justify-between antialiased select-none border-b dark:shadow-lg'
'relative top-0 z-20 flex-none pb-3 px-5 flex items-center justify-between antialiased select-none border-b dark:shadow-lg',
isMacOS && 'pt-6'
)}
style={{ fontFeatureSettings: '"cv02", "cv03", "cv04", "cv11"' }}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function MdiClose(props: SVGProps<SVGSVGElement>) {
}
export default function TitleBar() {
if (isMacOS) {
return <div data-tauri-drag-region className="h-6" />
return null
}
return (
<div
Expand Down
File renamed without changes.

0 comments on commit 53e3ff4

Please sign in to comment.