Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -174,6 +174,9 @@ STYLE = """
|
|
174 |
.nonselected-sequence {
|
175 |
background-color: var(--primary-500);
|
176 |
}
|
|
|
|
|
|
|
177 |
"""
|
178 |
|
179 |
|
@@ -238,7 +241,7 @@ def generate_nodes(node, step):
|
|
238 |
def generate_html(start_sentence, original_tree):
|
239 |
html_output = f"""<div class="custom-container">
|
240 |
<div class="tree">
|
241 |
-
<ul> <li> <a
|
242 |
html_output += "<ul> "
|
243 |
for subnode in original_tree.children.values():
|
244 |
html_output += generate_nodes(subnode, step=1)
|
|
|
174 |
.nonselected-sequence {
|
175 |
background-color: var(--primary-500);
|
176 |
}
|
177 |
+
.nopadding {
|
178 |
+
padding-left: 0;
|
179 |
+
}
|
180 |
"""
|
181 |
|
182 |
|
|
|
241 |
def generate_html(start_sentence, original_tree):
|
242 |
html_output = f"""<div class="custom-container">
|
243 |
<div class="tree">
|
244 |
+
<ul class="nopadding"> <li class="nopadding"> <a id='root'> <span> <b>{start_sentence}</b> </span> {original_tree.table} </a>"""
|
245 |
html_output += "<ul> "
|
246 |
for subnode in original_tree.children.values():
|
247 |
html_output += generate_nodes(subnode, step=1)
|