diff --git a/components/metrics/RealtimeLog.js b/components/metrics/RealtimeLog.js index 63add268..b5e7a65b 100644 --- a/components/metrics/RealtimeLog.js +++ b/components/metrics/RealtimeLog.js @@ -176,9 +176,11 @@ export default function RealtimeLog({ data, websites, websiteId }) {
{logs?.length === 0 && } - - {Row} - + {logs?.length > 0 && ( + + {Row} + + )}
); diff --git a/components/metrics/RealtimeLog.module.css b/components/metrics/RealtimeLog.module.css index 6fb09a64..7c07d017 100644 --- a/components/metrics/RealtimeLog.module.css +++ b/components/metrics/RealtimeLog.module.css @@ -1,6 +1,9 @@ .table { font-size: var(--font-size-xsmall); overflow: hidden; + height: 100%; + display: grid; + grid-template-rows: fit-content(100%) fit-content(100%) auto; } .header { @@ -21,6 +24,7 @@ .body { overflow: auto; + height: 100%; } .icon {