File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ export const MainPanel = (props: {
2727 settings ( ) . panelLocation ,
2828 Boolean ( pip ( ) . pipWindow ) ,
2929 ) ,
30- styles ( ) . devtoolsPanelContainerAnimation ( props . isOpen ( ) , height ( ) ) ,
30+ styles ( ) . devtoolsPanelContainerAnimation (
31+ props . isOpen ( ) ,
32+ height ( ) ,
33+ settings ( ) . panelLocation ,
34+ ) ,
3135 styles ( ) . devtoolsPanelContainerVisibility ( props . isOpen ( ) ) ,
3236 styles ( ) . devtoolsPanelContainerResizing ( props . isResizing ) ,
3337 ) }
Original file line number Diff line number Diff line change @@ -166,7 +166,11 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
166166 transition: all 0.4s ease;
167167 `
168168 } ,
169- devtoolsPanelContainerAnimation : ( isOpen : boolean , height : number ) => {
169+ devtoolsPanelContainerAnimation : (
170+ isOpen : boolean ,
171+ height : number ,
172+ panelLocation : TanStackDevtoolsConfig [ 'panelLocation' ] ,
173+ ) => {
170174 if ( isOpen ) {
171175 return css `
172176 pointer- events: auto ;
@@ -175,7 +179,7 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
175179 }
176180 return css `
177181 pointer- events: none;
178- transfor m: translateY(${ height } px);
182+ transfor m: translateY(${ panelLocation === 'top' ? - height : height } px);
179183 `
180184 } ,
181185 devtoolsPanel : css `
You can’t perform that action at this time.
0 commit comments