Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix default layout button handler #94

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ It is a summary of changes that would be pertinent to the end user of the PGEtin
## 2024-06-09

- Fixed [Issue #92](https://github.com/Moros1138/PGEtinker/issues/92)
- Fixed default layout button handler

## 2024-06-08

Expand Down
9 changes: 8 additions & 1 deletion resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ class PGEtinker
event.preventDefault();

this.layout.destroy();
this.layoutConfig = defaultLayout;

this.layoutConfig = defaultLandscapeLayout;

if(document.body.clientWidth <= 750)
{
console.log("chose portrait layout");
this.layoutConfig = defaultPortraitLayout;
}

this.SetupLayout();
});
Expand Down