From 664b4ef2e7e618c8c38ac68bb5553d396b353393 Mon Sep 17 00:00:00 2001 From: liuxtq Date: Fri, 6 Dec 2024 09:43:31 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E6=8E=A7=E5=88=B6=E6=8C=89?= =?UTF-8?q?=E9=92=AE=EF=BC=8C=E5=88=87=E6=8D=A2=E5=9B=BE=E5=BD=A2=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B1=95=E7=8E=B0=E5=92=8C=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zeppelin/iginx/IginxInterpreter8.java | 1 + .../resources/static/highcharts/tree.html | 43 ++++++++++++++++--- 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java b/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java index 40f06c3..356074f 100644 --- a/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java +++ b/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java @@ -364,6 +364,7 @@ public String buildTreeForShowColumns(SessionExecuteSqlResult sqlResult, String String html = content .toString() + .replace("PARAGRAPH_ID", paragraphId) .replace("NODE_LIST", jsonString) .replace("TREE_DEPTH", String.valueOf(depth)) .replace("TREE_ENABLE", String.valueOf(graphTreeEnable)); diff --git a/v8/src/main/resources/static/highcharts/tree.html b/v8/src/main/resources/static/highcharts/tree.html index 615e4e7..fdae7a0 100644 --- a/v8/src/main/resources/static/highcharts/tree.html +++ b/v8/src/main/resources/static/highcharts/tree.html @@ -9,7 +9,7 @@ max-width: 100vw; min-width: 60vw; } - #container { + #PARAGRAPH_ID_single_container { height: 35rem; } .large-tree{ @@ -24,11 +24,30 @@ width: 55vw; margin: 0 calc((100vw - 60vw) / 2); } + .toggle-button { + padding: 0 5px; + border: none; + background-color: transparent; + color: inherit; + cursor: pointer; + font-size: 14px; + } + .toggle-button::before { + content: ">> "; + color: #333; + } + .toggle-button:hover { + color: #2e70a8; + } + .toggle-button:hover::before { + color: #2e70a8; + } +
-
+