Make windows and macos have the same window style

This commit is contained in:
2025-09-11 12:01:21 -07:00
parent a02fe932b4
commit 6c21759705
3 changed files with 23 additions and 20 deletions

View File

@@ -13,7 +13,6 @@ import {
import { faDiscord } from '@fortawesome/free-brands-svg-icons'
import { useState } from 'react'
import { platform } from '@tauri-apps/plugin-os'
import { getCurrentWindow } from '@tauri-apps/api/window'
import { useGlobal } from '../GlobalProvider'
import Image from 'next/image'
import Link from 'next/link'
@@ -28,23 +27,6 @@ export default function Sidebar () {
return (
<aside className='sidebar'>
<div
className='dragarea'
style={{
height: '30px',
width: 'calc(var(--spacing) * 60)',
top: 0,
left: 0,
marginBottom: '-15px',
position: 'absolute',
zIndex: 9999,
display: platform() == 'macos' ? 'block' : 'none',
pointerEvents: 'auto'
}}
onMouseDown={() => {
getCurrentWindow().startDragging()
}}
></div>
<div className='logo'>
<Image
draggable={false}