-
-
Notifications
You must be signed in to change notification settings - Fork 62
fix: layout fixes #782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
fix: layout fixes #782
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deployed to https://msg-adamant-pr-782.surge.sh 🚀 |
@@ -104,6 +104,9 @@ export default { | |||
} | |||
}, | |||
methods: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be convert this file to composition? It seems like it's going to be fast
/> | ||
</container> | ||
</v-row> | ||
</component> | ||
</template> | ||
|
||
<script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one too, doesn't seem hard to convert to composition
@@ -206,7 +207,13 @@ export default { | |||
CurrencySwitcher, | |||
PasswordSetDialog | |||
}, | |||
mixins: [scrollPosition], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You transported the scrollbar position logic to mounted
, right?
props: { | ||
sidebarLayoutRef: { | ||
type: Object, | ||
required: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need in required
here
mounted() { | ||
nextTick(() => { | ||
if (this.sidebarLayoutRef) { | ||
const scrollTopValue = Number(localStorage.getItem('optionsScrollTop')) || 0 | ||
this.sidebarLayoutRef.scrollTo({ | ||
top: scrollTopValue | ||
}) | ||
} | ||
}) | ||
}, | ||
beforeUnmount() { | ||
localStorage.setItem('optionsScrollTop', this.sidebarLayoutRef?.scrollTop || 0) | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you store the scroll position in the LocalStorage?
No description provided.