Skip to content

Commit

Permalink
fix: set tabs to same height
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Aug 12, 2021
1 parent 2a12f71 commit a9e9764
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/assets/index.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<h5 class="modal-title">Upload App</h5>
<button id="btnModalClose" type="button" class="btn-close"></button>
</div>
<div class="modal-body">
<div id="modalBody" class="modal-body">
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<button
Expand Down Expand Up @@ -364,6 +364,7 @@
const formFileText = document.getElementById("formFileText");
const formSubmit = document.getElementById("formSubmit");
const uploadForm = document.getElementById("uploadForm");
const modalBody = document.getElementById("modalBody");
const formFileSpinner = document.getElementById("formFileSpinner");
const modalElem = document.getElementById("uploadModal");
const modal = new bootstrap.Modal(modalElem, {
Expand All @@ -386,6 +387,9 @@
const navMain = new bootstrap.Tab(document.getElementById("nav-main-tab"));
let actionsActive = 0;

modalElem.addEventListener("shown.bs.modal", function () {
modalBody.style.minHeight = `${modalBody.offsetHeight}px`;
});
for (let item of dropdownResign) {
item.addEventListener("click", function () {
actionsActive++;
Expand Down

0 comments on commit a9e9764

Please sign in to comment.