Note windows now render the main App component with panels defaulted to hidden (editor-only view, inspector collapsed). This gives note windows full feature parity: zoom, all keyboard shortcuts, properties editing, and panel toggles — eliminating the maintenance burden of a separate shell. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
797 B
TypeScript
22 lines
797 B
TypeScript
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import { TooltipProvider } from '@/components/ui/tooltip'
|
|
import './index.css'
|
|
import App from './App.tsx'
|
|
|
|
// Disable native WebKit context menu in Tauri (WKWebView intercepts right-click
|
|
// at native level before React's synthetic events can call preventDefault).
|
|
// Capture phase fires first → prevents native menu; React bubble phase still fires
|
|
// → our custom context menus (e.g. sidebar right-click) work correctly.
|
|
if ('__TAURI__' in window || '__TAURI_INTERNALS__' in window) {
|
|
document.addEventListener('contextmenu', (e) => e.preventDefault(), true)
|
|
}
|
|
|
|
createRoot(document.getElementById('root')!).render(
|
|
<StrictMode>
|
|
<TooltipProvider>
|
|
<App />
|
|
</TooltipProvider>
|
|
</StrictMode>,
|
|
)
|