1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

JS-6482: fix

This commit is contained in:
Andrew Simachev 2025-02-26 09:51:53 +01:00
parent 8d414480bf
commit defd70effc
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF
2 changed files with 3 additions and 6 deletions

View file

@ -107,7 +107,6 @@ const Page = observer(class Page extends React.Component<I.PageComponent> {
</Frame>
)}
</div>
<div id="sidebarDummyRight" className="sidebarDummy" />
<SidebarRight
ref={ref => S.Common.refSet(`sidebarRight${namespace}`, ref)}
key="sidebarRight"

View file

@ -17,7 +17,6 @@ class Sidebar {
objLeft: JQuery<HTMLElement> = null;
objRight: JQuery<HTMLElement> = null;
dummyLeft: JQuery<HTMLElement> = null;
dummyRight: JQuery<HTMLElement> = null
page: JQuery<HTMLElement> = null;
pageFlex: JQuery<HTMLElement> = null;
@ -62,14 +61,13 @@ class Sidebar {
const vault = S.Common.getRef('vault');
this.objLeft = $('#sidebarLeft');
this.objRight = $('#sidebarRight');
this.pageFlex = $(`#pageFlex.${isPopup ? 'isPopup' : 'isFull'}`);
this.page = $(`#page.${isPopup ? 'isPopup' : 'isFull'}`);
this.pageFlex = U.Common.getPageFlexContainer(isPopup);
this.page = U.Common.getPageContainer(isPopup);
this.header = this.page.find('#header');
this.footer = this.page.find('#footer');
this.loader = this.page.find('#loader');
this.objRight = this.pageFlex.find('#sidebarRight');
this.dummyLeft = $('#sidebarDummyLeft');
this.dummyRight = $('#sidebarDummyRight');
this.toggleButton = $('#sidebarToggle');
this.syncButton = $('#sidebarSync');