mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed side pane
This commit is contained in:
parent
696ac8d69f
commit
c67107bd95
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ export const SidePane: FC<IProps> = ({
|
|||
|
||||
const moveThis = useCallback(() => {
|
||||
const shift = window.innerWidth > (content_width + 64 + 20)
|
||||
? ((window.innerWidth - content_width - 64 - 20) / 2) - 54 - 10 + 64
|
||||
? ((window.innerWidth - content_width - 64 - 20) / 2) - 54 + 64
|
||||
: 10;
|
||||
|
||||
setLeft(shift);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue