diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 82a8de5..bc19549 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -12,7 +12,7 @@ crate-type = ["staticlib", "cdylib", "rlib"] tauri-build = { version = "2.3.0", features = [] } [dependencies] -tauri = { version = "2.6.2", features = [] } +tauri = { version = "2.6.2", features = ["macos-private-api"] } tauri-plugin-opener = "2.4.0" serde = { version = "1.0.219", features = ["derive"] } serde_json = "1.0.140" diff --git a/src/componets/Sidebar.tsx b/src/componets/Sidebar.tsx index 8391d79..d529053 100644 --- a/src/componets/Sidebar.tsx +++ b/src/componets/Sidebar.tsx @@ -5,6 +5,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCog, faServer } from '@fortawesome/free-solid-svg-icons' import { faDiscord } from '@fortawesome/free-brands-svg-icons' import { useState } from 'react' +import { platform } from '@tauri-apps/plugin-os' const Sidebar = () => { const [rot, setRot] = useState(0) @@ -19,7 +20,8 @@ const Sidebar = () => { height={48} style={{ transform: `rotate(${rot}deg)`, - transition: 'transform 0.3s ease' + transition: 'transform 0.3s ease', + marginTop: platform() == 'macos' ? '20px' : '0px' }} onClick={() => setRot(r => {