Skip to content

Commit 1af90da

Browse files
committed
Make scene larger on larger screens
1 parent 6d4e8ce commit 1af90da

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

front/src/routes/scene/edit-scene/EditScenePage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const EditScenePage = ({ children, ...props }) => (
1414
<div class="page-main">
1515
<div class="my-3 my-md-5">
1616
<AutoScrollMobile position="top" box_type={props.actionsGroupTypes} />
17-
<div class="container mb-8">
17+
<div class={cx(style.sceneContainer, 'mb-8')}>
1818
<div class="mb-4">
1919
<div class="row justify-content-between">
2020
<div class="col-8">

front/src/routes/scene/edit-scene/style.css

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
.sceneContainer {
2+
width: 100%;
3+
padding-right: 0.75rem;
4+
padding-left: 0.75rem;
5+
margin-right: auto;
6+
margin-left: auto;
7+
}
8+
9+
@media (min-width: 576px) {
10+
.sceneContainer {
11+
max-width: 540px;
12+
}
13+
}
14+
15+
@media (min-width: 768px) {
16+
.sceneContainer {
17+
max-width: 720px;
18+
}
19+
}
20+
21+
@media (min-width: 992px) {
22+
.sceneContainer {
23+
max-width: 90%;
24+
}
25+
}
26+
127
.arrowDown {
228
font-size: 35px;
329
}
@@ -32,13 +58,12 @@
3258
}
3359
}
3460

35-
3661
.settings {
3762
opacity: 0;
3863
max-height: 0;
3964
visibility: hidden;
4065
transition: opacity 0.3s ease, max-height 0.3s ease;
41-
padding: 0rem
66+
padding: 0rem;
4267
}
4368

4469
.settingsOpen {

0 commit comments

Comments
 (0)