Skip to content

Commit

Permalink
top bar overflow on resizing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AnushaTiwari5 committed Oct 19, 2023
1 parent 886f1f8 commit a4cf1be
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
34 changes: 16 additions & 18 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ p {
#header {
background-color: #a6b6d9;
border: 2px solid #000000;
border-right: 0px;
min-height: 6vh;
width: 100vw;
text-align: center;
Expand Down Expand Up @@ -50,9 +51,9 @@ p {
}

.modeButtonPressed {
-webkit-box-shadow: inset 0px 0px 5px #c1c1c1;
-moz-box-shadow: inset 0px 0px 5px #c1c1c1;
box-shadow: inset 0px 0px 5px #c1c1c1;
-webkit-box-shadow: inset 0px 0px 5px #000000;
-moz-box-shadow: inset 0px 0px 5px #000000;
box-shadow: inset 0px 0px 5px #000000;
}

.modeButton:hover {
Expand All @@ -66,34 +67,31 @@ p {
min-width: 6vw;
}

#graphString {
width: 84vw;
overflow-wrap: break-word;
}

#content {
width: 100%;
height: auto;
}

#toolbar {
border: 2px solid #000000;
border-left: 0px;
border-top: 0px;
border-bottom: 2px solid black;
min-height: 7vh;
max-height: fit-content;
width: 100vw;
max-height: 10vh;
max-width: 100vw;
overflow-y: auto;
overflow-x: hidden;
overflow-wrap: break-word;
box-sizing: border-box;
background-color: #94b09c;
}

#subBar {
border: 2px solid black;
border-left: 0px;
border-top: 0px;
border-bottom: 2px solid black;
min-height: 6vh;
max-height: fit-content;
width: 100vw;
max-height: 10vh;
max-width: 100vw;
overflow-y: auto;
overflow-x: hidden;
overflow-wrap: break-word;
box-sizing: border-box;
background-color: #bed7be;
}
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ declare global {
}
}

//Active mode button stays pressed down
//Active mode button stays pressed down until another mode button is clicked
const modeButtons = document.querySelectorAll(".modeButton");
modeButtons.forEach(button => {
button.addEventListener("click", () => {
console.log("clicked");
button.classList.toggle("modeButtonPressed");
modeButtons.forEach(otherButton => {
if (otherButton !== button) {
Expand Down

0 comments on commit a4cf1be

Please sign in to comment.