Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
background-color: var(--initial-loader-bg, #fff) !important;
color: var(--initial-text-color, #000) !important;
transition: none !important;
overflow: hidden;
}
html {
overflow-x: hidden;
overflow-y: scroll;
overflow: hidden;
background-color: var(--initial-loader-bg, #fff) !important;
}
body, #app {
Expand All @@ -88,15 +88,14 @@
min-height: 100vh;
}
#loading-bg {
position: absolute;
position: fixed;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: var(--initial-loader-bg, #fff);
block-size: 100%;
inset: 0;
gap: 2rem 0;
inline-size: 100%;
}
.loading-wrapper {
position: relative;
Expand Down Expand Up @@ -420,6 +419,9 @@
// Remove loader immediately for specific pages
const loader = document.getElementById('loading-bg')
if (loader) loader.remove()
// Restore overflow
document.documentElement.style.overflow = ''
document.body.style.overflow = ''
} else {
// Normal loader behavior for other pages
window.addEventListener('app-ready', () => {
Expand All @@ -429,7 +431,12 @@
const loader = document.getElementById('loading-bg')
if (loader) {
loader.classList.add('fade-out')
setTimeout(() => loader.remove(), 800)
setTimeout(() => {
loader.remove()
// Restore overflow after loader is removed
document.documentElement.style.overflow = ''
document.body.style.overflow = ''
}, 800)
}
})
})
Expand Down
24 changes: 12 additions & 12 deletions src/layouts/components/UserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ async function logout() {

const userProfileList = [
{ type: "divider" },
{
type: "navItem",
icon: "tabler-credit-card",
titleKey: "userProfile.billingAndPayments",
to: "/billing/payments",
},
{ type: "divider" },

// {
// type: "navItem",
Expand All @@ -136,16 +143,6 @@ const userProfileList = [
// icon: "tabler-settings",
// title: "Settings",
// },
// {
// type: "navItem",
// icon: "tabler-file-dollar",
// title: "Billing Plan",
// badgeProps: {
// color: "error",
// content: "4",
// },
// },
// { type: "divider" },

// {
// type: "navItem",
Expand Down Expand Up @@ -239,15 +236,18 @@ const userProfileList = [
<VListItem
v-if="item.type === 'navItem'"
:to="item.to"
color="default"
:active="false"
>
<template #prepend>
<VIcon
:icon="item.icon"
size="22"
color="default"
/>
</template>

<VListItemTitle>{{ item.title }}</VListItemTitle>
<VListItemTitle>{{ item.titleKey ? $t(item.titleKey) : item.title }}</VListItemTitle>

<template
v-if="item.badgeProps"
Expand Down Expand Up @@ -275,7 +275,7 @@ const userProfileList = [
append-icon="tabler-logout"
@click="logout"
>
Logout
{{ $t('userProfile.logout') }}
</VBtn>
</div>
</PerfectScrollbar>
Expand Down
Loading