fixed panel layout for mobile chrome
This commit is contained in:
parent
93f421eba4
commit
06f885e284
|
|
@ -10,9 +10,9 @@ export const LeftPanel = observer(function () {
|
|||
if (isGame)
|
||||
return null;
|
||||
|
||||
function handleLoadWorld(): void {
|
||||
state.world.load();
|
||||
}
|
||||
// function handleLoadWorld(): void {
|
||||
// state.world.load();
|
||||
// }
|
||||
|
||||
function handleLoadMockWorld(): void {
|
||||
state.world.loadMock();
|
||||
|
|
@ -21,7 +21,7 @@ export const LeftPanel = observer(function () {
|
|||
return <Panel side='left'>
|
||||
<MenuView />
|
||||
<div className="gap" />
|
||||
<button onClick={handleLoadWorld}>Load</button>
|
||||
{/* <button onClick={handleLoadWorld}>Load</button> */}
|
||||
<button onClick={handleLoadMockWorld}>Load mock world</button>
|
||||
<div className="debug"><RenderInfoView /></div>
|
||||
</Panel>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 10px;
|
||||
|
|
@ -27,6 +27,10 @@
|
|||
flex-direction: column;
|
||||
gap: 0.25em;
|
||||
|
||||
&:not(:first-child) {
|
||||
margin-left: none !important;
|
||||
}
|
||||
|
||||
&.left,
|
||||
&.right {
|
||||
min-width: 30%;
|
||||
|
|
|
|||
Loading…
Reference in New Issue