Skip to content

Commit dda61aa

Browse files
committed
Fix wide display
1 parent be65e55 commit dda61aa

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pages/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,18 @@ class Page extends React.Component {
441441
position: 'relative',
442442
border: '1px solid #ddd',
443443
width: `${width}px`,
444-
paddingBottom: '100%',
445-
height: 0,
444+
// paddingBottom: '100%',
445+
// height: 0,
446446
maxWidth: '100%',
447447
background: '#fff'
448448
}}
449449
>
450+
<div style={{
451+
position: 'relative',
452+
width: '100%',
453+
paddingBottom: '100%',
454+
height: 0
455+
}} />
450456
<div
451457
style={{
452458
display: this.state.gameover ? 'block' : 'none',

0 commit comments

Comments
 (0)