File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 6161 */
6262 let mobileSibar = $state ();
6363
64+ let mobileSibarWidth = $state ();
65+
6466 /**
6567 * Bind to window.scrollY
6668 */
189191 < div class = " mobilesidebar-container" >
190192 < div
191193 bind: this = {mobileSibar}
194+ bind: clientWidth= {mobileSibarWidth}
192195 class = " sibar-innercontainer"
193196 transition: slide| global = {{ axis: ' x' }}
194197 onintroend= {() => {
198201 removeEventListener (' click' , clickOutsideMobileSibarHandler);
199202 }}
200203 >
201- < ZSbarContainer treeArray= {data .directory } signal= " expandAll" / >
204+ < ZSbarContainer
205+ treeArray= {data .directory }
206+ signal= " expandAll"
207+ width= {` ${ mobileSibarWidth} px` }
208+ / >
202209 < / div>
203210 < / div>
204211 {/ if }
208215 {#if displays .displayToc }
209216 < div class = " toc" >
210217 {#if headings && headings? .length }
211- < div
212- class = " tocContainer"
213- transition: slide| global = {{ duration: 300 , axis: ' x' }}
214- >
218+ < div class = " tocContainer" transition: slide| global = {{ duration: 300 , axis: ' x' }}>
215219 < ZTocList {headings} indent= " 0.5" / >
216220 < / div>
217221 {/ if }
You can’t perform that action at this time.
0 commit comments