Fixing absolute positioning of Svelte scenes
This commit is contained in:
parent
b04c438d6f
commit
9c9699d2d1
@ -21,7 +21,7 @@
|
|||||||
export let game: Game;
|
export let game: Game;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div>
|
<div class="absolute-overlay">
|
||||||
{#if $loginSceneVisibleStore}
|
{#if $loginSceneVisibleStore}
|
||||||
<LoginScene game={game}></LoginScene>
|
<LoginScene game={game}></LoginScene>
|
||||||
{/if}
|
{/if}
|
||||||
@ -34,9 +34,6 @@
|
|||||||
{#if $selectCompanionSceneVisibleStore}
|
{#if $selectCompanionSceneVisibleStore}
|
||||||
<SelectCompanionScene game={ game }></SelectCompanionScene>
|
<SelectCompanionScene game={ game }></SelectCompanionScene>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $helpCameraSettingsVisibleStore}
|
|
||||||
<HelpCameraSettingsPopup game={ game }></HelpCameraSettingsPopup>
|
|
||||||
{/if}
|
|
||||||
{#if $enableCameraSceneVisibilityStore}
|
{#if $enableCameraSceneVisibilityStore}
|
||||||
<EnableCameraScene game={game}></EnableCameraScene>
|
<EnableCameraScene game={game}></EnableCameraScene>
|
||||||
{/if}
|
{/if}
|
||||||
@ -47,4 +44,19 @@
|
|||||||
<MyCamera></MyCamera>
|
<MyCamera></MyCamera>
|
||||||
<CameraControls></CameraControls>
|
<CameraControls></CameraControls>
|
||||||
{/if}
|
{/if}
|
||||||
|
{#if $helpCameraSettingsVisibleStore}
|
||||||
|
<HelpCameraSettingsPopup game={ game }></HelpCameraSettingsPopup>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.absolute-overlay {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
> & {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -132,11 +132,13 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.enableCameraScene {
|
.enableCameraScene {
|
||||||
|
position: absolute;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
/*background: #000000;*/
|
/*background: #000000;*/
|
||||||
margin: 20px auto 0;
|
margin: 20px auto 0;
|
||||||
color: #ebeeee;
|
color: #ebeeee;
|
||||||
height: 100vh;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
/*max-height: 48vh;
|
/*max-height: 48vh;
|
||||||
width: 42vw;
|
width: 42vw;
|
||||||
|
Loading…
Reference in New Issue
Block a user