Skip to content

Commit b59d245

Browse files
committed
fix: make it mobile responsive
1 parent d5f047c commit b59d245

10 files changed

Lines changed: 28 additions & 29 deletions

File tree

web/app/components/MessageThread.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ function onInstallApp() {
9797
</v-btn>
9898
</div>
9999
<v-list
100-
class="pt-0"
101-
lines="two"
100+
class="py-0"
102101
v-if="!threadsStore.loadingThreads && threadsStore.threads.length > 0"
102+
lines="two"
103103
>
104104
<v-list-item
105105
v-for="thread in threadsStore.threads"

web/app/components/MessageThreadHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async function logout() {
142142
<v-spacer />
143143
<v-menu>
144144
<template #activator="{ props: menuProps }">
145-
<v-btn v-bind="menuProps" icon variant="text" class="mt-2">
145+
<v-btn v-bind="menuProps" icon variant="text" class="mt-2 mr-n3">
146146
<v-icon :icon="mdiDotsVertical" />
147147
</v-btn>
148148
</template>

web/app/pages/billing/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ useHead({
2727
})
2828
2929
const config = useRuntimeConfig()
30-
const { mdAndDown, lgAndUp } = useDisplay()
30+
const { lgAndUp } = useDisplay()
3131
const authStore = useAuthStore()
3232
const billingStore = useBillingStore()
3333
const notificationsStore = useNotificationsStore()
@@ -248,7 +248,7 @@ onMounted(async () => {
248248
<template>
249249
<VContainer fluid class="px-0 pt-0" :class="{ 'fill-height': lgAndUp }">
250250
<div class="w-100 h-100">
251-
<VAppBar height="60" :density="mdAndDown ? 'compact' : 'default'">
251+
<VAppBar>
252252
<VBtn icon to="/threads">
253253
<VIcon :icon="mdiArrowLeft" />
254254
</VBtn>

web/app/pages/bulk-messages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ useHead({
1414
})
1515
1616
const router = useRouter()
17-
const { mdAndUp, mdAndDown } = useDisplay()
17+
const { mdAndUp } = useDisplay()
1818
const authStore = useAuthStore()
1919
const notificationsStore = useNotificationsStore()
2020
const { formatTimestamp } = useFilters()
@@ -111,7 +111,7 @@ onMounted(async () => {
111111
<template>
112112
<VContainer fluid class="px-0 pt-0" :class="{ 'fill-height': true }">
113113
<div class="w-100 h-100">
114-
<VAppBar height="60" :density="mdAndDown ? 'compact' : 'default'">
114+
<VAppBar>
115115
<VBtn icon to="/threads">
116116
<VIcon :icon="mdiArrowLeft" />
117117
</VBtn>

web/app/pages/messages/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ useHead({
1717
})
1818
1919
const router = useRouter()
20-
const { mdAndDown } = useDisplay()
20+
const { mdAndDown, mdAndUp } = useDisplay()
2121
const notificationsStore = useNotificationsStore()
2222
const phonesStore = usePhonesStore()
2323
const { useApi } = useApiComposable()
@@ -109,15 +109,15 @@ onMounted(async () => {
109109
</script>
110110

111111
<template>
112-
<VContainer fluid class="pa-0" :class="{ 'fill-height': true }">
112+
<VContainer fluid :class="{ 'fill-height': true }">
113113
<div class="w-100 h-100">
114-
<VAppBar height="60" :density="mdAndDown ? 'compact' : 'default'">
114+
<VAppBar>
115115
<VBtn icon to="/threads">
116116
<VIcon :icon="mdiArrowLeft" />
117117
</VBtn>
118118
<VToolbarTitle>
119119
New Message
120-
<template v-if="phonesStore.owner">
120+
<template v-if="phonesStore.owner && mdAndUp">
121121
<VIcon size="12" class="mx-2" color="primary" :icon="mdiCircle" />
122122
{{ formatPhoneNumber(phonesStore.owner) }}
123123
</template>

web/app/pages/phone-api-keys/index.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ useHead({
1616
})
1717
1818
const config = useRuntimeConfig()
19-
const { mdAndDown, lgAndUp } = useDisplay()
19+
const { lgAndUp } = useDisplay()
2020
const authStore = useAuthStore()
2121
const appStore = useAppStore()
2222
const phonesStore = usePhonesStore()
@@ -228,11 +228,11 @@ onBeforeUnmount(() => {
228228
<template>
229229
<VContainer fluid class="px-0 pt-0" :class="{ 'fill-height': lgAndUp }">
230230
<div class="w-100 h-100">
231-
<VAppBar height="60" :density="mdAndDown ? 'compact' : 'default'">
231+
<VAppBar>
232232
<VBtn icon to="/threads">
233233
<VIcon :icon="mdiArrowLeft" />
234234
</VBtn>
235-
<VToolbarTitle> Phone API Keys </VToolbarTitle>
235+
<VToolbarTitle>Phone API Keys</VToolbarTitle>
236236
<VProgressLinear
237237
color="primary"
238238
:active="loading"
@@ -253,7 +253,9 @@ onBeforeUnmount(() => {
253253
class="mt-1 mr-2"
254254
indeterminate
255255
/>
256-
<h5 class="text-display-small my-0">Phone API Keys</h5>
256+
<h5 class="text-md-display-small text-title-large my-0">
257+
Phone API Keys
258+
</h5>
257259
<VBtn
258260
color="primary"
259261
class="ml-4 mt-1"

web/app/pages/search-messages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ useHead({
4242
4343
const route = useRoute()
4444
const config = useRuntimeConfig()
45-
const { mdAndDown, mdAndUp, smAndDown, lgAndUp } = useDisplay()
45+
const { mdAndUp, smAndDown, lgAndUp } = useDisplay()
4646
const messagesStore = useMessagesStore()
4747
const phonesStore = usePhonesStore()
4848
const authStore = useAuthStore()
@@ -349,7 +349,7 @@ onBeforeUnmount(() => {
349349
<template>
350350
<VContainer fluid class="px-0 pt-0" :class="{ 'fill-height': lgAndUp }">
351351
<div class="w-100 h-100">
352-
<VAppBar height="60" :density="mdAndDown ? 'compact' : 'default'">
352+
<VAppBar>
353353
<VBtn icon to="/threads">
354354
<VIcon :icon="mdiArrowLeft" />
355355
</VBtn>

web/app/pages/settings/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,9 +769,9 @@ onMounted(async () => {
769769
</script>
770770

771771
<template>
772-
<VContainer fluid class="pa-0" :class="{ 'fill-height': lgAndUp }">
772+
<VContainer fluid :class="{ 'fill-height': lgAndUp }">
773773
<div class="w-100 h-100">
774-
<VAppBar height="60" :density="mdAndDown ? 'compact' : 'default'">
774+
<VAppBar>
775775
<VBtn icon to="/threads">
776776
<VIcon :icon="mdiArrowLeft" />
777777
</VBtn>

web/app/pages/threads/[id]/index.vue

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,15 @@ onBeforeUnmount(() => {
244244
</script>
245245

246246
<template>
247-
<VContainer fluid class="px-0 pt-0 pb-0" :class="{ 'fill-height': lgAndUp }">
248-
<div class="w-100 h-100">
249-
<VAppBar height="60" :density="mdAndDown ? 'compact' : 'default'">
247+
<VContainer class="px-0" :class="{ 'fill-height': lgAndUp }">
248+
<div class="h-100">
249+
<VAppBar>
250250
<VBtn v-if="mdAndDown" icon to="/threads">
251251
<VIcon :icon="mdiArrowLeft" />
252252
</VBtn>
253-
<VToolbarTitle>
254-
<span v-if="threadsStore.currentThread">
255-
{{ formatPhoneNumber(threadsStore.currentThread.contact) }}
256-
</span>
253+
<VToolbarTitle v-if="threadsStore.currentThread">
254+
{{ formatPhoneNumber(threadsStore.currentThread.contact) }}
257255
</VToolbarTitle>
258-
<VSpacer />
259256
<VMenu>
260257
<template #activator="{ props }">
261258
<VBtn icon variant="text" class="mt-2" v-bind="props">
@@ -558,7 +555,7 @@ onBeforeUnmount(() => {
558555
padding-top: 50px;
559556
max-height: calc(100vh - 200px);
560557
position: absolute;
561-
width: 100%;
558+
width: calc(100vw - 8px);
562559
bottom: 120px;
563560
}
564561

web/app/pages/threads/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ onMounted(async () => {
2020
</script>
2121

2222
<template>
23-
<VContainer fluid :class="{ 'fill-height': lgAndUp }">
23+
<VContainer class="pa-0" fluid :class="{ 'fill-height': lgAndUp }">
2424
<VRow
2525
v-if="lgAndUp"
2626
align="center"

0 commit comments

Comments
 (0)