Spaces:
Sleeping
Sleeping
the-puzzler commited on
Commit ·
ac351d6
1
Parent(s): fc4202f
Fix dataframe scrolling without unsupported height arg
Browse files
app.py
CHANGED
|
@@ -102,6 +102,17 @@ CSS = """
|
|
| 102 |
background: rgba(255, 255, 255, 0.72);
|
| 103 |
padding: 10px 12px 2px 12px;
|
| 104 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
"""
|
| 106 |
|
| 107 |
|
|
@@ -846,7 +857,7 @@ with gr.Blocks(title="Microbiome Explorer", css=CSS, theme=gr.themes.Soft()) as
|
|
| 846 |
headers=["id", "source", "taxonomy", "detail", "seq_len"],
|
| 847 |
label="Current community",
|
| 848 |
wrap=True,
|
| 849 |
-
|
| 850 |
)
|
| 851 |
community_status = gr.Markdown(elem_classes=["section-note"])
|
| 852 |
|
|
@@ -861,14 +872,14 @@ with gr.Blocks(title="Microbiome Explorer", css=CSS, theme=gr.themes.Soft()) as
|
|
| 861 |
headers=["id", "stability_score", "source", "taxonomy", "detail"],
|
| 862 |
label="Top members by stability score",
|
| 863 |
wrap=True,
|
| 864 |
-
|
| 865 |
)
|
| 866 |
with gr.Accordion("Analyzed members", open=False):
|
| 867 |
member_table = gr.Dataframe(
|
| 868 |
headers=["id", "source", "taxonomy", "detail", "seq_len"],
|
| 869 |
label="Members used in the run",
|
| 870 |
wrap=True,
|
| 871 |
-
|
| 872 |
)
|
| 873 |
|
| 874 |
fasta_run_btn.click(
|
|
|
|
| 102 |
background: rgba(255, 255, 255, 0.72);
|
| 103 |
padding: 10px 12px 2px 12px;
|
| 104 |
}
|
| 105 |
+
.fixed-table {
|
| 106 |
+
border: 1px solid var(--line);
|
| 107 |
+
border-radius: 16px;
|
| 108 |
+
overflow: hidden;
|
| 109 |
+
}
|
| 110 |
+
.fixed-table .table-wrap,
|
| 111 |
+
.fixed-table .wrap,
|
| 112 |
+
.fixed-table .overflow-y-auto {
|
| 113 |
+
max-height: 360px;
|
| 114 |
+
overflow-y: auto;
|
| 115 |
+
}
|
| 116 |
"""
|
| 117 |
|
| 118 |
|
|
|
|
| 857 |
headers=["id", "source", "taxonomy", "detail", "seq_len"],
|
| 858 |
label="Current community",
|
| 859 |
wrap=True,
|
| 860 |
+
elem_classes=["fixed-table"],
|
| 861 |
)
|
| 862 |
community_status = gr.Markdown(elem_classes=["section-note"])
|
| 863 |
|
|
|
|
| 872 |
headers=["id", "stability_score", "source", "taxonomy", "detail"],
|
| 873 |
label="Top members by stability score",
|
| 874 |
wrap=True,
|
| 875 |
+
elem_classes=["fixed-table"],
|
| 876 |
)
|
| 877 |
with gr.Accordion("Analyzed members", open=False):
|
| 878 |
member_table = gr.Dataframe(
|
| 879 |
headers=["id", "source", "taxonomy", "detail", "seq_len"],
|
| 880 |
label="Members used in the run",
|
| 881 |
wrap=True,
|
| 882 |
+
elem_classes=["fixed-table"],
|
| 883 |
)
|
| 884 |
|
| 885 |
fasta_run_btn.click(
|