Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
change parent of button to position:relative
Browse files Browse the repository at this point in the history
  • Loading branch information
nikobenedikt committed Jun 20, 2022
1 parent 377bc3b commit 28b82be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simulator/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ function App() {
border: `1px solid ${rgb2string(wavelengthColor)}`,
textAlign: 'center',
color: isLocked ? `1px solid ${rgb2string(wavelengthColor)}` : 'white',
position: 'relative',
}
const bottomStyle = {
backgroundImage: `linear-gradient( 0deg, black 25%, ${rgb2string(
Expand Down Expand Up @@ -518,8 +519,6 @@ function App() {
<div style={statusStyle}>
Cavity {isLocked ? 'is locked' : 'is out of phase'}
{isMaximallyOutOfPhase && ' (maximally)'}
</div>
<div style={bottomStyle}>
<button
style={collapsBtnStyle}
onClick={() => setIsBottomCollapsed((x) => !x)}
Expand All @@ -528,6 +527,7 @@ function App() {
{isBottomCollapsed ? '↑' : '↓'}
</button>
</div>
<div style={bottomStyle}></div>
</div>
</MathJaxContext>
)
Expand Down

0 comments on commit 28b82be

Please sign in to comment.