Layout for EngineDebug must not overlap with play area. Otherwise you can't click on buttons

This commit is contained in:
Settel 2021-08-30 12:48:54 +02:00
parent 5d5c4a68aa
commit 0e5084144f
2 changed files with 35 additions and 17 deletions

View File

@ -20,17 +20,14 @@ export default {
<style lang="scss"> <style lang="scss">
.enginedebug { .enginedebug {
position: absolute; width: 100%;
right: 0; height: 100%;
bottom: 0;
max-height: 100%;
background-color: rgba(0, 32, 64, 0.75); background-color: rgba(0, 32, 64, 0.75);
max-width: 600px;
overflow: auto; overflow: auto;
&__json { &__json {
margin: 1em 2em;
color: #808080; color: #808080;
font-size: 10px;
} }
} }
</style> </style>

View File

@ -1,6 +1,7 @@
<template> <template>
<div class="page-play"> <div class="page-play">
<EngineDebug /> <div class="page-play__container">
<div class="page-play__container-game">
<div class="page-play__gamecontrols"> <div class="page-play__gamecontrols">
<GameControls /> <GameControls />
</div> </div>
@ -12,6 +13,11 @@
<Play v-if="gameState === 'play'" /> <Play v-if="gameState === 'play'" />
</div> </div>
</div> </div>
<div class="page-play__container-debug">
<EngineDebug />
</div>
</div>
</div>
</template> </template>
<script> <script>
@ -35,8 +41,23 @@ export default {
<style lang="scss"> <style lang="scss">
.page-play { .page-play {
width: 100%;
&__container {
display: flex;
width: 100%;
height: 100%;
&-game {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%;
}
&-debug {
max-width: 350px;
max-height: 100%;
}
}
&__controls { &__controls {
flex: 0 1 auto; flex: 0 1 auto;