mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
drag top bar
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
|||||||
import { useAppStore } from '@/store/app-store';
|
import { useAppStore } from '@/store/app-store';
|
||||||
import { useSetupStore } from '@/store/setup-store';
|
import { useSetupStore } from '@/store/setup-store';
|
||||||
import { getElectronAPI, isElectron } from '@/lib/electron';
|
import { getElectronAPI, isElectron } from '@/lib/electron';
|
||||||
|
import { isMac } from '@/lib/utils';
|
||||||
import {
|
import {
|
||||||
initApiKey,
|
initApiKey,
|
||||||
isElectronMode,
|
isElectronMode,
|
||||||
@@ -342,6 +343,13 @@ function RootLayoutContent() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="flex h-screen overflow-hidden" data-testid="app-container">
|
<main className="flex h-screen overflow-hidden" data-testid="app-container">
|
||||||
|
{/* Full-width titlebar drag region for Electron window dragging */}
|
||||||
|
{isElectron() && (
|
||||||
|
<div
|
||||||
|
className={`fixed top-0 left-0 right-0 h-6 titlebar-drag-region z-40 pointer-events-none ${isMac ? 'pl-20' : ''}`}
|
||||||
|
aria-hidden="true"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
<div
|
<div
|
||||||
className="flex-1 flex flex-col overflow-hidden transition-all duration-300"
|
className="flex-1 flex flex-col overflow-hidden transition-all duration-300"
|
||||||
|
|||||||
Reference in New Issue
Block a user