Fix TitleBar double-click and improve link button styles
This commit is contained in:
1 parent
d9a850302b
commit
e9e82329bd
2 files changed
+5
-12
No files matched your search
@@ -236,11 +236,12 @@
|
||||
gap: 8px;
|
||||
padding: 10px 16px;
|
||||
background: var(--bg-tertiary);
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 150ms ease;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,23 +34,15 @@
|
||||
await appWindow?.close();
|
||||
}
|
||||
|
||||
async function startDrag() {
|
||||
await appWindow?.startDragging();
|
||||
}
|
||||
|
||||
async function handleDoubleClick() {
|
||||
await appWindow?.toggleMaximize();
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
<header class="titlebar">
|
||||
<!-- Drag region - entire left area -->
|
||||
<div
|
||||
class="drag-region"
|
||||
onmousedown={startDrag}
|
||||
ondblclick={handleDoubleClick}
|
||||
></div>
|
||||
<header class="titlebar" ondblclick={handleDoubleClick}>
|
||||
<!-- Drag region - uses CSS app-region: drag -->
|
||||
<div class="drag-region"></div>
|
||||
|
||||
<!-- Window Controls -->
|
||||
<div class="window-controls">
|
||||
|
||||
Reference in new issue
Block a user