remove chart pengujian if there is no data

This commit is contained in:
Muhammad Izza Alfiansyah 2024-06-12 15:28:46 +07:00
parent be5b818f00
commit a5a3ae3218
2 changed files with 6 additions and 3 deletions

View File

@ -1,10 +1,10 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Solid + TS</title>
<title>Fermonitor V1</title>
</head>
<body>
<div id="root"></div>

View File

@ -117,7 +117,10 @@ export default function () {
maka proses fermentasi berpotensi gagal.
</p>
</div>
<div class="bg-white rounded shadow p-5">
<div
class="bg-white rounded shadow p-5"
classList={{ hidden: items().length < 1 }}
>
<canvas ref={canvas} style={{ "max-height": "300px" }}></canvas>
</div>
<div class="bg-white rounded shadow p-5">