🎨
This commit is contained in:
		
							parent
							
								
									6783178dc3
								
							
						
					
					
						commit
						616594d3cd
					
				
					 3 changed files with 2 additions and 3 deletions
				
			
		|  | @ -7,7 +7,7 @@ export class StickySidebar { | ||||||
| 	private isTop = false; | 	private isTop = false; | ||||||
| 	private isBottom = false; | 	private isBottom = false; | ||||||
| 	private offsetTop: number; | 	private offsetTop: number; | ||||||
| 	private globalHeaderHeight: number = 59; | 	private globalHeaderHeight = 59; | ||||||
| 
 | 
 | ||||||
| 	constructor(container: StickySidebar['container'], marginTop = 0, globalHeaderHeight = 0) { | 	constructor(container: StickySidebar['container'], marginTop = 0, globalHeaderHeight = 0) { | ||||||
| 		this.container = container; | 		this.container = container; | ||||||
|  |  | ||||||
|  | @ -17,7 +17,7 @@ | ||||||
| 		</main> | 		</main> | ||||||
| 
 | 
 | ||||||
| 		<div v-if="isDesktop" ref="widgetsRight" class="widgets right"> | 		<div v-if="isDesktop" ref="widgetsRight" class="widgets right"> | ||||||
| 			<XWidgets :place="showMenuOnTop ? 'right' : null" :margin-top="'var(--margin)'" @mounted="attachSticky(widgetsRight)"/> | 			<XWidgets :place="showMenuOnTop ? 'right' : null" :margin-top="showMenuOnTop ? '0' : 'var(--margin)'" @mounted="attachSticky(widgetsRight)"/> | ||||||
| 		</div> | 		</div> | ||||||
| 	</div> | 	</div> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -85,7 +85,6 @@ function updateWidgets(thisWidgets) { | ||||||
| .root { | .root { | ||||||
| 	position: sticky; | 	position: sticky; | ||||||
| 	height: min-content; | 	height: min-content; | ||||||
| 	min-height: 100vh; |  | ||||||
| 	box-sizing: border-box; | 	box-sizing: border-box; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue