Skip to content

Commit b65b07f

Browse files
committed
Add sliding animation for collapse behavior
1 parent a62ddb9 commit b65b07f

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

dash/dash-renderer/src/components/error/menu/DebugMenu.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
font-size: 14px;
2626
border-radius: 0px;
2727
letter-spacing: normal;
28+
white-space: nowrap;
2829
gap: 6px;
2930
cursor: pointer;
3031
border: none;
@@ -125,7 +126,7 @@
125126
flex-direction: row;
126127
font-family: Verdana, sans-serif !important;
127128
font-size: 14px;
128-
justify-content: center;
129+
justify-content: flex-end;
129130
align-items: center;
130131
z-index: 10000;
131132
border-radius: 5px 0 0 0;
@@ -135,12 +136,11 @@
135136
0px 2.3px 2px 0px rgba(0, 0, 0, 0.03);
136137
border: 1px solid rgba(0, 24, 102, 0.1);
137138
}
138-
.dash-debug-menu__outer--closed {
139-
height: 60px;
140-
width: 60px;
141-
bottom: 37px;
142-
right: 37px;
143-
padding: 0;
139+
.dash-debug-menu__outer.dash-debug-menu__outer--collapsed {
140+
width: 50px;
141+
}
142+
.dash-debug-menu__outer.dash-debug-menu__outer--expanded {
143+
width: 682px;
144144
}
145145

146146
.dash-debug-menu__upgrade-tooltip {

dash/dash-renderer/src/components/error/menu/DebugMenu.react.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ const DebugMenu = ({error, hotReload, config, children}) => {
154154

155155
return (
156156
<div>
157-
<div className={classes('dash-debug-menu__outer')}>
157+
<div
158+
className={classes(
159+
'dash-debug-menu__outer',
160+
collapsed ? 'collapsed' : 'expanded'
161+
)}
162+
>
158163
{popupContent}
159164
{menuContent}
160165
<button

0 commit comments

Comments
 (0)