mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-09 03:18:04 +00:00
Hide desktop app titlebar chrome
This commit is contained in:
parent
9ff3bbfac6
commit
cb36d89d9c
1 changed files with 3 additions and 11 deletions
|
|
@ -1,16 +1,8 @@
|
|||
"use client"
|
||||
|
||||
// Draggable strip for the frameless main window. On macOS the native traffic
|
||||
// lights overlay the top-left (tauri.conf.json -> titleBarStyle: "Overlay"),
|
||||
// so we pad left to clear them. `data-tauri-drag-region` is the hook that lets
|
||||
// Tauri move the OS window when this strip is dragged.
|
||||
export function Titlebar({ title = "Supermemory" }: { title?: string }) {
|
||||
// Invisible drag strip for the frameless main window.
|
||||
export function Titlebar() {
|
||||
return (
|
||||
<header
|
||||
data-tauri-drag-region
|
||||
className="flex h-10 shrink-0 items-center justify-center border-white/[0.06] border-b bg-[#05080D]/70 pl-20 font-medium text-[#737B86] text-xs backdrop-blur-md"
|
||||
>
|
||||
{title}
|
||||
</header>
|
||||
<header data-tauri-drag-region className="h-2.5 shrink-0 bg-transparent" />
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue