Quick fix

This commit is contained in:
Tom 2025-03-04 15:08:27 +00:00
parent 102b3390ed
commit 8758b49a65
2 changed files with 42 additions and 42 deletions

View File

@ -47,53 +47,53 @@ q = Qube.from_dict({
# depth controls how much of the tree is open when rendered as html. # depth controls how much of the tree is open when rendered as html.
q.html(depth=100) q.html(depth=100)
``` ```
<div class="output text_html"> <div class="output text_html">
<style> <style>
pre#qubed-tree-555631 { pre#qubed-tree-555631 {
font-family: monospace; font-family: monospace;
white-space: pre; white-space: pre;
font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace; font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;
font-size: 12px; font-size: 12px;
line-height: 1.4; line-height: 1.4;
details { details {
margin-left: 0; margin-left: 0;
} }
summary { summary {
list-style: none; list-style: none;
cursor: pointer; cursor: pointer;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
text-wrap: nowrap; text-wrap: nowrap;
display: block; display: block;
} }
summary:hover,span.leaf:hover { summary:hover,span.leaf:hover {
background-color: #f0f0f0; background-color: #f0f0f0;
} }
details > summary::after { details > summary::after {
content: ' ▲'; content: ' ▲';
} }
details:not([open]) > summary::after { details:not([open]) > summary::after {
content: " ▼"; content: " ▼";
} }
.leaf { .leaf {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
text-wrap: nowrap; text-wrap: nowrap;
display: block; display: block;
} }
summary::-webkit-details-marker { summary::-webkit-details-marker {
display: none; display: none;
content: ""; content: "";
} }
} }
</style> </style>
<pre class="qubed-tree" id="qubed-tree-555631"><details open=""><summary>root</summary><details open=""><summary>├── class=od</summary><details open=""><summary>│ ├── expver=0001</summary><span class="leaf">│ │ ├── param=1</span><span class="leaf">│ │ └── param=2</span></details><details open=""><summary>│ └── expver=0002</summary><span class="leaf">│ ├── param=1</span><span class="leaf">│ └── param=2</span></details></details><details open=""><summary>└── class=rd</summary><details open=""><summary> ├── expver=0001</summary><span class="leaf"> │ ├── param=1</span><span class="leaf"> │ ├── param=2</span><span class="leaf"> │ └── param=3</span></details><details open=""><summary> └── expver=0002</summary><span class="leaf"> ├── param=1</span><span class="leaf"> └── param=2</span></details></details></details></pre></div></div> <pre class="qubed-tree" id="qubed-tree-555631"><details open=""><summary>root</summary><details open=""><summary>├── class=od</summary><details open=""><summary>│ ├── expver=0001</summary><span class="leaf">│ │ ├── param=1</span><span class="leaf">│ │ └── param=2</span></details><details open=""><summary>│ └── expver=0002</summary><span class="leaf">│ ├── param=1</span><span class="leaf">│ └── param=2</span></details></details><details open=""><summary>└── class=rd</summary><details open=""><summary> ├── expver=0001</summary><span class="leaf"> │ ├── param=1</span><span class="leaf"> │ ├── param=2</span><span class="leaf"> │ └── param=3</span></details><details open=""><summary> └── expver=0002</summary><span class="leaf"> ├── param=1</span><span class="leaf"> └── param=2</span></details></details></details></pre></div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB