Skip to content

Commit fdc474e

Browse files
PlayBridgeJS: Stop using fixed heights
1 parent 549ee5d commit fdc474e

File tree

1 file changed

+13
-3
lines changed
  • Examples/PlayBridgeJS/Sources/JavaScript

1 file changed

+13
-3
lines changed

Examples/PlayBridgeJS/Sources/JavaScript/styles.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ body {
4949
background-color: var(--color-fill);
5050
color: var(--color-text);
5151
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
52-
height: 100vh;
53-
overflow: hidden;
52+
min-height: 100vh;
5453
line-height: 1.5;
5554
}
5655

5756
.container {
58-
height: 100vh;
57+
min-height: 100vh;
5958
padding: 24px;
6059
display: flex;
6160
flex-direction: column;
@@ -383,15 +382,26 @@ body {
383382
}
384383

385384
@media (max-width: 768px) {
385+
body {
386+
overflow: auto;
387+
}
388+
386389
.main-content {
387390
grid-template-columns: 1fr;
388391
gap: 16px;
392+
flex: none;
389393
}
390394

391395
.container {
396+
height: auto;
397+
min-height: 100vh;
392398
padding: 12px;
393399
}
394400

401+
.editor-container {
402+
min-height: 300px;
403+
}
404+
395405
.header h1 {
396406
font-size: 24px;
397407
}

0 commit comments

Comments
 (0)