Skip to content

Commit 33930f9

Browse files
💩 shit css style computed
1 parent b3bbe13 commit 33930f9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/layouts/ChatLayout.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@
8282
</q-drawer>
8383

8484
<q-page-container style="display: flex">
85-
<q-page-container :class="{'is-mobile':store.isMobile,half:!store.isMobile}" class="no-padding" style="background: #fff">
85+
<q-page-container :class="{'is-mobile':store.isMobile,half:!store.isMobile,'not-mobile-left':!store.isMobile}" class="no-padding" style="background: #fff">
8686
<router-view name="fakeSidebar"></router-view>
8787
</q-page-container>
88-
<q-page-container style="flex:1" :class="{half:!store.isMobile}" class="no-padding">
88+
<q-page-container style="flex:1" :class="{half:(!store.isMobile&&route.path.includes('person')),'not-mobile-right':(!store.isMobile&&route.path.includes('person'))}" class="no-padding">
8989
<router-view v-slot="{ Component }">
9090
<transition
9191
enter-active-class="animated fadeInRight"
@@ -177,5 +177,12 @@ try {
177177
max-width: 50vw;
178178
overflow: hidden;
179179
}
180+
.not-mobile-left{
181+
position: fixed;
182+
height: 100vh;
183+
}
184+
.not-mobile-right{
185+
margin-left:50vw;
186+
}
180187
181188
</style>

0 commit comments

Comments
 (0)