Skip to content
Snippets Groups Projects
Commit 616594d3 authored by syuilo's avatar syuilo
Browse files

🎨

parent 6783178d
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ export class StickySidebar {
private isTop = false;
private isBottom = false;
private offsetTop: number;
private globalHeaderHeight: number = 59;
private globalHeaderHeight = 59;
constructor(container: StickySidebar['container'], marginTop = 0, globalHeaderHeight = 0) {
this.container = container;
......
......@@ -17,7 +17,7 @@
</main>
<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>
......
......@@ -85,7 +85,6 @@ function updateWidgets(thisWidgets) {
.root {
position: sticky;
height: min-content;
min-height: 100vh;
box-sizing: border-box;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment