Skip to content

Commit 14a9d15

Browse files
committed
moved all inline style to stylesheet
1 parent d0892c5 commit 14a9d15

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

apps/dash-cytoscape-phylogeny/app.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,10 @@ def add_to_elements(clade, clade_id):
188188
html.H4("Phylogeny"),
189189
cyto.Cytoscape(
190190
id="cytoscape",
191+
className="cytoscape",
191192
elements=elements,
192193
stylesheet=stylesheet,
193194
layout={"name": "preset", "fit": True, "animate": True},
194-
style={
195-
"height": "650px",
196-
"width": "100%",
197-
"backgroundColor": "white",
198-
"margin": "auto",
199-
},
200195
minZoom=0.25,
201196
),
202197
],

apps/dash-cytoscape-phylogeny/assets/style.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ h4{
3535
font-size: 20px;
3636
}
3737

38-
#cytoscape{
39-
height: 95vh;
40-
width: 100%;
38+
.cytoscape{
39+
height: 650px !important;
40+
width: 100% !important;
4141
background-color: white;
4242
margin:auto;
4343
}
4444

45+
4546
.div-info{
4647
padding-bottom: 14px;
4748
border-bottom: 1px solid #1f1f1f60

0 commit comments

Comments
 (0)