Fix Floating button not shifting when symbols is open
This commit is contained in:
parent
b6571e32d2
commit
08f98bd40f
1 changed files with 2 additions and 2 deletions
|
@ -47,10 +47,10 @@ export function UI(props: IUIProps): JSX.Element {
|
||||||
const [isHistoryOpen, setIsHistoryOpen] = React.useState(false);
|
const [isHistoryOpen, setIsHistoryOpen] = React.useState(false);
|
||||||
|
|
||||||
let buttonRightOffsetClasses = 'right-12';
|
let buttonRightOffsetClasses = 'right-12';
|
||||||
if (isSidebarOpen || isHistoryOpen) {
|
if (isSidebarOpen || isHistoryOpen || isSymbolsOpen) {
|
||||||
buttonRightOffsetClasses = 'right-72';
|
buttonRightOffsetClasses = 'right-72';
|
||||||
}
|
}
|
||||||
if (isHistoryOpen && isSidebarOpen) {
|
if (isHistoryOpen && (isSidebarOpen || isSymbolsOpen)) {
|
||||||
buttonRightOffsetClasses = 'right-[544px]';
|
buttonRightOffsetClasses = 'right-[544px]';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue