Skip to content

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

fix: layout fixes #782

wants to merge 1 commit into from

Conversation

S-FrontendDev
Copy link
Collaborator

No description provided.

@S-FrontendDev S-FrontendDev requested a review from a team as a code owner April 30, 2025 18:47
Copy link

vercel bot commented Apr 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
adamant-im ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 6:49pm

@S-FrontendDev
Copy link
Collaborator Author

Copy link

Deployed to https://msg-adamant-pr-782.surge.sh 🚀

@@ -104,6 +104,9 @@ export default {
}
},
methods: {
Copy link
Collaborator

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>
Copy link
Collaborator

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],
Copy link
Collaborator

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,
Copy link
Collaborator

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

Comment on lines +230 to +242
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)
},
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants