Skip to content

Commit

Permalink
only open inspector when there's size
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
  • Loading branch information
BeryJu committed Dec 11, 2024
1 parent cbc4697 commit 3f8147f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/flow/FlowExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@ export class FlowExecutor extends Interface implements StageHost {

async firstUpdated(): Promise<void> {
configureSentry();
if (this.config?.capabilities.includes(CapabilitiesEnum.CanDebug)) {
if (
this.config?.capabilities.includes(CapabilitiesEnum.CanDebug) &&
// Only open inspector automatically in debug when we have enough space for it
window.innerWidth >= 768
) {
this.inspectorOpen = true;
}
this.loading = true;
Expand Down

0 comments on commit 3f8147f

Please sign in to comment.