perf(desktop): delete the fullscreen button in the menu bar

This commit is contained in:
wj-xiao
2026-01-14 16:26:35 +08:00
parent 5da18185f2
commit 788db995f0
2 changed files with 0 additions and 26 deletions

View File

@@ -1,24 +0,0 @@
import { ReactElement, useState } from 'react'
import { MaximizeIcon, MinimizeIcon } from 'lucide-react'
import { IpcEvents } from '@common/ipc-events'
export const Fullscreen = (): ReactElement => {
const [isFullscreen, setIsFullscreen] = useState(false)
function handleFullscreen(): void {
const fullscreen = !isFullscreen
window.electron.ipcRenderer.send(IpcEvents.SET_FULL_SCREEN, fullscreen)
setIsFullscreen(fullscreen)
}
return (
<div
className="flex h-[28px] cursor-pointer items-center justify-center rounded px-2 text-white hover:bg-neutral-700/70"
onClick={handleFullscreen}
>
{isFullscreen ? <MinimizeIcon size={18} /> : <MaximizeIcon size={18} />}
</div>
)
}

View File

@@ -6,7 +6,6 @@ import Draggable from 'react-draggable'
import * as storage from '@renderer/libs/storage'
import { Fullscreen } from './fullscreen'
import { Keyboard } from './keyboard'
import { Mouse } from './mouse'
import { Recorder } from './recorder'
@@ -115,7 +114,6 @@ export const Menu = (): ReactElement => {
<Divider type="vertical" className="px-0.5" />
<Fullscreen />
<Settings />
<div
className="flex h-[28px] cursor-pointer items-center justify-center rounded px-2 text-white hover:bg-neutral-700/70"