Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion site/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const App = () => {
overlayClassName="Overlay"
ariaHideApp={false}
contentLabel="Playground Selection"
width="2000px"
>
<Button className="close-modal-btn" onClick={closeModal}>
&times;
Expand Down
30 changes: 17 additions & 13 deletions site/src/index.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,27 @@ export const GlobalStyle = createGlobalStyle`
}
}
.Modal {
position: fixed;
inset: 50% auto auto 50%;
border: 1px solid rgb(204, 204, 204);
background: ${(props) => props.theme.body};
border-radius: 0.5rem;
outline: none;
padding: 20px;
margin-right: -50%;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 85%;
max-height: 80vh;
overflow-y: auto;
&::-webkit-scrollbar {
display: none;
}
height: 80vh;
width: 85%;
overflow: hidden;
padding: 20px;
border: 1px solid rgb(204, 204, 204);
border-radius: 0.5rem;
@media (max-width: 59rem) {
max-width: 85%;
width: 90%;
}
.content {
height: 100%;
overflow-y: auto;
&::-webkit-scrollbar {
display: none;
}
}
.close-modal-btn {
min-width: 2rem;
Expand Down