Archived
fix: prevent sidebar action menus from being cropped
Use viewport-constrained positioning for sidebar action menus and keep the auth warning test isolated from local models.json config so pre-commit verification is deterministic.
This commit is contained in:
@@ -124,7 +124,7 @@ export class MachineList extends LitElement implements KeyboardNavigableSection
|
||||
this.openMenuMachineId = undefined;
|
||||
return;
|
||||
}
|
||||
this.menuStyle = actionMenuPanelStyle(target);
|
||||
this.menuStyle = actionMenuPanelStyle(target, { constrainTo: "viewport" });
|
||||
this.openMenuMachineId = machineId;
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ export class ProjectList extends LitElement implements KeyboardNavigableSection
|
||||
this.openMenuProjectId = undefined;
|
||||
return;
|
||||
}
|
||||
this.menuStyle = actionMenuPanelStyle(target);
|
||||
this.menuStyle = actionMenuPanelStyle(target, { constrainTo: "viewport" });
|
||||
this.openMenuProjectId = projectId;
|
||||
}
|
||||
|
||||
|
||||
@@ -336,7 +336,7 @@ export class SessionList extends LitElement implements KeyboardNavigableSection
|
||||
this.openMenuSessionId = undefined;
|
||||
return;
|
||||
}
|
||||
this.menuStyle = actionMenuPanelStyle(target);
|
||||
this.menuStyle = actionMenuPanelStyle(target, { constrainTo: "viewport" });
|
||||
this.openMenuSessionId = sessionId;
|
||||
}
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ export class WorkspaceList extends LitElement implements KeyboardNavigableSectio
|
||||
this.openMenuWorkspaceId = undefined;
|
||||
return;
|
||||
}
|
||||
this.menuStyle = actionMenuPanelStyle(target);
|
||||
this.menuStyle = actionMenuPanelStyle(target, { constrainTo: "viewport" });
|
||||
this.openMenuWorkspaceId = workspaceId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user