The page now runs to the very top of the window: titleBarStyle Overlay gives the full size content view, so there is no reserved band above the apps and the nav reaches the top edge with the traffic lights floating over it. That costs the old drag strip. A native webview swallows mouse events, so the shell cannot offer a drag region anywhere over a page — once the page starts at y=0 the only surface left is the nav. So the nav becomes the handle, all of it, at either width. Every container carries the attribute and only the buttons do not, which keeps them clickable: a drag region is decided by the element under the cursor. The scrolling app list is included, and loses nothing by it — mousedown is all a drag region takes, never the wheel or a trackpad swipe. Verified by dragging from bare points in both the collapsed rail and the expanded panel: the window follows the delta exactly, and clicking an app still switches to it rather than moving the window.
44 lines
866 B
JSON
44 lines
866 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "Work",
|
|
"version": "0.0.1",
|
|
"identifier": "com.vincent.workapp",
|
|
"build": {
|
|
"beforeDevCommand": "npm run dev",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeBuildCommand": "npm run build",
|
|
"frontendDist": "../dist"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "Work",
|
|
"width": 1440,
|
|
"height": 900,
|
|
"minWidth": 900,
|
|
"minHeight": 600,
|
|
"center": true,
|
|
"hiddenTitle": true,
|
|
"titleBarStyle": "Overlay"
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": [
|
|
"app"
|
|
],
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
]
|
|
}
|
|
}
|