1
0
Fork 0
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:
muerwre 2019-07-30 05:16:01 +07:00
parent 696ac8d69f
commit c67107bd95

View file

@ -13,7 +13,7 @@ export const SidePane: FC<IProps> = ({
const moveThis = useCallback(() => { const moveThis = useCallback(() => {
const shift = window.innerWidth > (content_width + 64 + 20) 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; : 10;
setLeft(shift); setLeft(shift);