fix(app): center dialog on page instead of session

This commit is contained in:
Adam
2026-01-16 14:33:24 -06:00
parent db0078bf17
commit 360765c591
2 changed files with 0 additions and 10 deletions

View File

@@ -902,15 +902,6 @@ export default function Layout(props: ParentProps) {
globalSync.project.loadSessions(project.worktree)
})
createEffect(() => {
if (isLargeViewport()) {
const sidebarWidth = layout.sidebar.opened() ? layout.sidebar.width() : 64
document.documentElement.style.setProperty("--dialog-left-margin", `${sidebarWidth}px`)
return
}
document.documentElement.style.setProperty("--dialog-left-margin", "0px")
})
function getDraggableId(event: unknown): string | undefined {
if (typeof event !== "object" || event === null) return undefined
if (!("draggable" in event)) return undefined

View File

@@ -16,7 +16,6 @@
[data-component="dialog"] {
position: fixed;
inset: 0;
margin-left: var(--dialog-left-margin);
z-index: 50;
display: flex;
align-items: center;