Skip to content

Commit

Permalink
closes League-of-Foundry-Developers#132; Fix missing margin in combin…
Browse files Browse the repository at this point in the history
…ation with Tidy UI plugin.
  • Loading branch information
marcstraube committed Oct 23, 2022
1 parent 0e91c0a commit a546e21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Module/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,9 +642,11 @@ Hooks.once("init", () => {
const { selectedModule } = await getModuleSelection();
new BugReportForm(undefined, { selectedModule }).render(true);
});
let buttonWrapper = $(`<div class="settings-bug-report"></div>`);
buttonWrapper.append(button);
// Adds our button at the top of the sidebar, underneath
// game version
button.insertAfter(html.find("#game-details"));
buttonWrapper.insertAfter(html.find("#game-details"));
}
// game.modules isn't populated until init, so we insert our API here.
game.modules.get("bug-reporter").api = new BugReporterAPI();
Expand Down
9 changes: 1 addition & 8 deletions Module/style.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/* Bug Report Button */
#settings button.bug-report {
margin-left: 8px;
margin-right: 8px;
width: calc(100% - 16px);
}

/* Bug Report Application */
.bug-report .window-content {
position: relative;
Expand Down Expand Up @@ -167,4 +160,4 @@
box-shadow: 0 -2em;
height: 5em;
}
}
}

0 comments on commit a546e21

Please sign in to comment.