Skip to content

Commit

Permalink
Layer pop up fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiabernat committed Nov 13, 2024
1 parent ea3e841 commit 16d1132
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dash_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ def toggle_expand(expand_clicks, close_clicks):
"border-radius": "10px",
"transition": "width 0.3s, height 0.3s",
}
# closed_btn_css ={"display": "none"}
closed_btn_css = [
html.Img(id="info-logo", className="svg",
src=app.get_asset_url("icons/funcs_icons/layers-two-final.svg"),
Expand Down
4 changes: 4 additions & 0 deletions dash_app/assets/layers.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@
bottom: 0;
right: 0;
width: 250px; /* Set the desired width */
height: 250px;
margin-bottom: 10px;
margin-right: 270px;
flex-direction: column;
border-radius: 15px;
padding: 10px;
/* transition: width 0.3s, height 0.3s; */
transition: width 0.3s, height 0.3s; /* Smooth transition for width and height */
transform-origin: bottom right; /* Shrink from top left */
}

#layer-funcs-container{
Expand Down

0 comments on commit 16d1132

Please sign in to comment.