From 568a4b5d92b642f98dd6e17b3bb78407ffbb8f03 Mon Sep 17 00:00:00 2001 From: qazal <77887910+Qazalin@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:14:47 +0300 Subject: [PATCH] viz touchups [pr] (#7095) * viz touchups [pr] * check if port busy * url --- tinygrad/viz/eslint.config.mjs | 9 --------- tinygrad/viz/index.html | 31 +++++++++++++------------------ tinygrad/viz/serve.py | 11 +++++++---- 3 files changed, 20 insertions(+), 31 deletions(-) delete mode 100644 tinygrad/viz/eslint.config.mjs diff --git a/tinygrad/viz/eslint.config.mjs b/tinygrad/viz/eslint.config.mjs deleted file mode 100644 index d95bcaf69177..000000000000 --- a/tinygrad/viz/eslint.config.mjs +++ /dev/null @@ -1,9 +0,0 @@ -import globals from "globals"; -import pluginJs from "@eslint/js"; -import pluginHtml from "eslint-plugin-html"; - -export default [ - {files: ["**/*.html"], plugins: {html: pluginHtml}, rules: {"max-len": ["error", {"code": 150}]}}, - {languageOptions: {globals: globals.browser}}, - pluginJs.configs.recommended, -]; diff --git a/tinygrad/viz/index.html b/tinygrad/viz/index.html index 52c608815522..c6de5ebfefbf 100644 --- a/tinygrad/viz/index.html +++ b/tinygrad/viz/index.html @@ -58,7 +58,7 @@ } .node rect { stroke: #4a4b57; - stroke-width: 1.5px; + stroke-width: 1.4px; rx: 8px; ry: 8px; } @@ -81,6 +81,9 @@ width: 100%; height: 100%; } + .main-container > * + * { + margin-left: 8px; + } .container { background-color: #0f1018; height: 100%; @@ -88,22 +91,13 @@ padding: 8px; position: relative; } - .container > * + * { + .container > * + *, .rewrite-container > * + * { margin-top: 12px; } - .rewrite-container > * + * { - margin-top: 12px; - } - .main-container > * + * { - margin-left: 8px; - } .kernel-list { width: 10%; overflow-y: auto; } - .kernel-list > ul > ul { - padding-left: 4px; - } .kernel-list > ul > * + * { margin-top: 4px; } @@ -153,7 +147,8 @@