Skip to content

Commit

Permalink
fixed styling on chall page
Browse files Browse the repository at this point in the history
- error messages for challenges weren't displaying in the right place
  due to commit ead62d1
- also made sure that everything will fit into the window even on
  smaller screens
  • Loading branch information
AVDestroyer authored and burturt committed Sep 13, 2023
1 parent 74086e3 commit 9299e23
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
20 changes: 11 additions & 9 deletions frontend/src/chall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,16 +301,18 @@ const Chall = () => {
);
} else {
buttons = (
<div className="deployment-info">
<button
className={"deploy OFF" + (isShaking[0] ? " shake-animation" : "")}
onClick={() => deployChallenge(0)}
disabled={disableButton[0]}
>
DEPLOY NOW
</button>
<>
<div className="deployment-info">
<button
className={"deploy OFF" + (isShaking[0] ? " shake-animation" : "")}
onClick={() => deployChallenge(0)}
disabled={disableButton[0]}
>
DEPLOY NOW
</button>
</div>
{errorMsg && <div className="errorMsg">{errorMsg}</div>}
</div>
</>
);
}
}
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/styles/chall.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.content-div {
height: calc(89vh - 5rem);
height: calc(99vh - 7.75rem);
display: flex;
flex-direction: column;
justify-content: left;
align-items: left;
padding-left: 10vh;
padding-top: 10vh;
padding-left: 5.5rem;
padding-top: 1.25rem;
}

.deployment-info {
Expand Down Expand Up @@ -122,6 +122,6 @@
}

.errorMsg {
margin: 10px 0px;
max-width: 30rem;
margin: 2rem 0px;
max-width: 60vw;
}

0 comments on commit 9299e23

Please sign in to comment.