improve log height when log doesnt fill whole height

This commit is contained in:
mbecker20
2022-04-18 22:27:18 -07:00
parent 1de3c89a9c
commit 7f01ad1a28
2 changed files with 4 additions and 3 deletions
@@ -58,11 +58,11 @@ const Log: Component<{
const buffer = useBuffer(scrolled, 250);
return (
<Show when={p.log}>
<Grid gap="0.5rem">
<Grid gap="0.5rem" style={{ height: "100%", "grid-template-rows": "auto 1fr" }}>
<Flex
alignItems="center"
justifyContent="flex-end"
style={{ margin: "0rem 0.5rem" }}
style={{ margin: "0rem 0.5rem", height: "fit-content" }}
>
lines:
<Selector
@@ -100,7 +100,7 @@ const Log: Component<{
<Icon type="refresh" />
</button>
</Flex>
<div style={{ position: "relative" }}>
<div style={{ position: "relative", height: "100%" }}>
<div
class={combineClasses(s.LogContainer, "scroller")}
ref={ref}
@@ -2,6 +2,7 @@
.LogContainer {
max-height: 75vh;
height: 100%;
margin: 0.5rem;
margin-top: 0rem;
background-color: rgba(c.$darkgrey, 0.6);