Skip to content

Commit

Permalink
Prefers column layout on first use
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Oct 6, 2024
1 parent fc0447a commit dcbae28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-drinks-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vtbag/inspection-chamber': patch
---

Prefers column layout on first use.
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,7 @@ function setOrientation() {
panelOrientation.split(' ').forEach((c) => html.classList.add(c));
updateTurner();
} else {
if (
top!.matchMedia('(orientation: landscape)').matches !==
html.classList.contains('vtbag-ui-column')
)
switchOrientation();
switchOrientation();
}
}

Expand Down

0 comments on commit dcbae28

Please sign in to comment.