1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-19 22:18:03 +00:00

Fixed layout and overflow

This commit is contained in:
2023-01-17 16:22:49 +01:00
parent 1d200db534
commit 928b4d229c
6 changed files with 24 additions and 8 deletions

View File

@ -160,9 +160,15 @@
display: grid;
grid-template: 1fr auto / 1fr;
gap: 0.5rem;
overflow: auto;
min-height: 0;
min-width: 0;
}
.result > .grid {
overflow: auto;
min-height: 0;
min-width: 0;
border: 1px solid #ccc;
}
.result > .controls {
display: flex;

View File

@ -70,6 +70,9 @@
padding: 0 0.5rem;
display: flex;
align-items: stretch;
overflow: auto;
min-height: 0;
min-width: 0;
}
.container > :global(*) {
width: 100%;

View File

@ -29,7 +29,9 @@
<button class="btn">Create&hellip;</button>
</div>
<ObjectGrid key="name" data={indexes} bind:activeKey on:trigger={e => openJson(e.detail)} />
<div class="grid">
<ObjectGrid key="name" data={indexes} bind:activeKey on:trigger={e => openJson(e.detail)} />
</div>
</div>
<CodeViewer bind:code={json} language="json" />
@ -40,4 +42,10 @@
gap: 0.5rem;
grid-template: auto 1fr / 1fr;
}
.indexes .grid {
min-height: 0;
min-width: 0;
border: 1px solid #ccc;
}
</style>