Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download web/app/pages/threads/[id]/index.vue from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 23.4 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/web/app/pages/threads/%5Bid%5D/index.vue
- Command line
-
hf download 'hf://spaces/red-kit/httpsms-gateway/web/app/pages/threads/[id]/index.vue'
-
curl -L -o index.vue https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/web/app/pages/threads/%5Bid%5D/index.vue
23.4 kB
| <script setup lang="ts"> | |
| import { | |
| mdiSend, | |
| mdiDotsVertical, | |
| mdiArrowLeft, | |
| mdiCheckAll, | |
| mdiDelete, | |
| mdiCallMissed, | |
| mdiPaperclip, | |
| mdiCheck, | |
| mdiAlert, | |
| mdiPackageUp, | |
| mdiPackageDown, | |
| mdiAccount, | |
| mdiRefresh, | |
| mdiContentCopy, | |
| mdiAccountPlus, | |
| mdiSquareEditOutline, | |
| } from '@mdi/js' | |
| import Pusher from 'pusher-js' | |
| import type { Channel } from 'pusher-js' | |
| import { isValidPhoneNumber } from 'libphonenumber-js' | |
| import { storeToRefs } from 'pinia' | |
| import { getApiErrorMessage, toApiError } from '~/utils/api-error' | |
| import type { | |
| EntitiesContact, | |
| EntitiesMessage, | |
| EntitiesMessageThread, | |
| } from '~~/shared/types/api' | |
| import { | |
| isUrlNotificationToken, | |
| formatWhatsappText, | |
| } from '~/utils/whatsapp-format' | |
| definePageMeta({ | |
| middleware: ['auth'], | |
| }) | |
| useHead({ | |
| title: 'Messages - httpSMS', | |
| }) | |
| const route = useRoute() | |
| const router = useRouter() | |
| const config = useRuntimeConfig() | |
| const { lgAndUp, mdAndDown, mdAndUp } = useVDisplay() | |
| const { formatPhoneNumber, startsWithLetter } = useFilters() | |
| const notificationsStore = useNotificationsStore() | |
| const authStore = useAuthStore() | |
| const phonesStore = usePhonesStore() | |
| const threadsStore = useThreadsStore() | |
| const messagesStore = useMessagesStore() | |
| const { currentThread } = storeToRefs(threadsStore) | |
| const formMessage = ref('') | |
| const submitting = ref(false) | |
| const loadingMessages = ref(false) | |
| const hideMessages = ref(true) | |
| const messages = ref<EntitiesMessage[]>([]) | |
| const selectedMenuItem = ref(-1) | |
| const contactDialog = ref(false) | |
| const messageBody = ref<HTMLElement | null>(null) | |
| const form = ref<{ validate: () => Promise<{ valid: boolean }> } | null>(null) | |
| let messageRequestId = 0 | |
| threadsStore.setThreadId(route.params.id as string) | |
| const formMessageRules = [ | |
| (v: string) => | |
| v === '' || | |
| (v && v.length <= 2048) || | |
| 'Message must be less than 2048 characters', | |
| ] | |
| let webhookChannel: Channel | null = null | |
| const contactIsPhoneNumber = computed(() => { | |
| const thread = currentThread.value | |
| if (!thread) return false | |
| return isValidPhoneNumber(thread.contact) || !isNaN(Number(thread.contact)) | |
| }) | |
| const messageVisibility = computed(() => | |
| hideMessages.value ? 'hidden' : 'visible', | |
| ) | |
| const contact = computed(() => currentThread.value?.contact ?? '') | |
| function isMT(message: EntitiesMessage): boolean { | |
| return message.type === 'mobile-terminated' | |
| } | |
| function isMo(message: EntitiesMessage): boolean { | |
| return message.type === 'mobile-originated' | |
| } | |
| function isMissedCall(message: EntitiesMessage): boolean { | |
| return message.type === 'call/missed' | |
| } | |
| function isWhatsappFormatted(message: EntitiesMessage): boolean { | |
| const phone = phonesStore.phones.find((x) => x.phone_number === message.owner) | |
| return isUrlNotificationToken(phone?.fcm_token) | |
| } | |
| function isPending(message: EntitiesMessage): boolean { | |
| return ['sending', 'pending', 'scheduled'].includes(message.status) | |
| } | |
| function statusColor(message: EntitiesMessage): string { | |
| if (message.status === 'sending') return 'warning' | |
| if (message.status === 'scheduled') return 'teal' | |
| return 'primary' | |
| } | |
| function canResend(message: EntitiesMessage): boolean { | |
| return ( | |
| isMT(message) && | |
| (message.status === 'expired' || message.status === 'failed') | |
| ) | |
| } | |
| function formatAttachmentName(url: string): string { | |
| const parts = url.split('/') | |
| if (parts.length >= 2) return '/' + parts.slice(-2).join('/') | |
| return url | |
| } | |
| function currentThreadContactTitle(): string { | |
| const thread = currentThread.value | |
| if (!thread) return '' | |
| return ( | |
| thread.contact_details?.name?.trim() || formatPhoneNumber(thread.contact) | |
| ) | |
| } | |
| async function refreshThreadContact(contacts: EntitiesContact[]) { | |
| await threadsStore.loadThreads(contacts) | |
| } | |
| function scrollToElement() { | |
| const el = messageBody.value | |
| if (el) { | |
| el.scrollTop = el.scrollHeight + 120 | |
| } | |
| hideMessages.value = false | |
| } | |
| async function resetCurrentThreadUnreadCount( | |
| force = false, | |
| threadId = route.params.id as string, | |
| ) { | |
| try { | |
| await threadsStore.resetThreadUnreadCount(threadId, force) | |
| } catch (error) { | |
| console.error(error) | |
| } | |
| } | |
| async function handleInboundMessage() { | |
| if (loadingMessages.value) return | |
| try { | |
| const thread = currentThread.value | |
| await threadsStore.loadThreads() | |
| if (!thread || loadingMessages.value) { | |
| return | |
| } | |
| await resetCurrentThreadUnreadCount(true) | |
| loadMessages(false, false) | |
| } catch (error) { | |
| console.error(error) | |
| } | |
| } | |
| async function loadMessages(hide = true, resetUnreadCount = true) { | |
| const requestId = ++messageRequestId | |
| loadingMessages.value = true | |
| const threadId = route.params.id as string | |
| hideMessages.value = hide | |
| if (resetUnreadCount) { | |
| void resetCurrentThreadUnreadCount(false, threadId) | |
| } | |
| try { | |
| const response = await threadsStore.loadThreadMessages(threadId) | |
| if (requestId !== messageRequestId) return | |
| messages.value = [...response].reverse() | |
| await nextTick() | |
| if (requestId !== messageRequestId) return | |
| scrollToElement() | |
| } finally { | |
| if (requestId === messageRequestId) { | |
| loadingMessages.value = false | |
| } | |
| } | |
| } | |
| async function loadData() { | |
| const threadId = route.params.id as string | |
| if (!threadsStore.hasThreadId(threadId)) { | |
| if (!authStore.user) await authStore.loadUser() | |
| await phonesStore.loadPhones() | |
| await threadsStore.loadThreads() | |
| } | |
| if (route.params.id !== threadId) return | |
| if (!threadsStore.hasThreadId(threadId)) { | |
| let requestedThread: EntitiesMessageThread | |
| try { | |
| requestedThread = await threadsStore.fetchThread(threadId) | |
| } catch (error) { | |
| if (route.params.id !== threadId) return | |
| const status = toApiError(error).status | |
| if (status === 404 || status === 422) { | |
| notificationsStore.addNotification({ | |
| type: 'error', | |
| message: 'The conversation could not be found', | |
| }) | |
| await router.push('/threads') | |
| return | |
| } | |
| notificationsStore.addNotification({ | |
| type: 'error', | |
| message: getApiErrorMessage( | |
| error, | |
| 'The conversation could not be loaded', | |
| ), | |
| }) | |
| throw error | |
| } | |
| if (route.params.id !== threadId) return | |
| const contextChanged = | |
| phonesStore.owner !== requestedThread.owner || | |
| threadsStore.archivedThreads !== requestedThread.is_archived | |
| if (phonesStore.owner !== requestedThread.owner) { | |
| await authStore.updateUser({ owner: requestedThread.owner }) | |
| } | |
| if (route.params.id !== threadId) return | |
| threadsStore.archivedThreads = requestedThread.is_archived | |
| if (contextChanged) await threadsStore.loadThreads() | |
| if (route.params.id !== threadId) return | |
| threadsStore.setThreadId(threadId) | |
| } | |
| if (!threadsStore.hasThreadId(threadId)) { | |
| await router.push('/threads') | |
| return | |
| } | |
| await loadMessages() | |
| } | |
| async function archiveThread() { | |
| await threadsStore.updateThread({ | |
| threadId: currentThread.value!.id, | |
| isArchived: true, | |
| }) | |
| await router.push('/threads') | |
| } | |
| async function unArchiveThread() { | |
| await threadsStore.updateThread({ | |
| threadId: currentThread.value!.id, | |
| isArchived: false, | |
| }) | |
| await router.push('/threads') | |
| } | |
| async function resendMessage(message: EntitiesMessage) { | |
| await messagesStore.sendMessage({ | |
| from: message.owner, | |
| to: message.contact, | |
| content: message.content, | |
| sim: 'DEFAULT', | |
| }) | |
| setTimeout(() => { | |
| selectedMenuItem.value = -1 | |
| }, 1000) | |
| loadMessages(false) | |
| } | |
| async function deleteMessage(message: EntitiesMessage) { | |
| await messagesStore.deleteMessage(message.id) | |
| setTimeout(() => { | |
| selectedMenuItem.value = -1 | |
| }, 1000) | |
| loadMessages(false) | |
| } | |
| async function copyMessageId(message: EntitiesMessage) { | |
| await navigator.clipboard.writeText(message.id) | |
| notificationsStore.addNotification({ | |
| message: 'Message ID copied to clipboard', | |
| type: 'success', | |
| }) | |
| setTimeout(() => { | |
| selectedMenuItem.value = -1 | |
| }, 1000) | |
| } | |
| async function deleteThread(threadID: string) { | |
| await threadsStore.deleteThread(threadID) | |
| await router.push('/threads') | |
| } | |
| async function sendMessage(event: KeyboardEvent | Event) { | |
| if (event instanceof KeyboardEvent && event.shiftKey) return | |
| if (!formMessage.value.trim()) return | |
| if (form.value) { | |
| const { valid } = await form.value.validate() | |
| if (!valid) return | |
| } | |
| submitting.value = true | |
| await messagesStore.sendMessage({ | |
| from: phonesStore.owner!, | |
| to: currentThread.value!.contact, | |
| content: formMessage.value, | |
| sim: 'DEFAULT', | |
| }) | |
| loadMessages(false) | |
| formMessage.value = '' | |
| submitting.value = false | |
| } | |
| onMounted(async () => { | |
| await loadData() | |
| const pusher = new Pusher(config.public.pusherKey as string, { | |
| cluster: config.public.pusherCluster as string, | |
| }) | |
| webhookChannel = pusher.subscribe(authStore.user!.id) | |
| webhookChannel.bind('message.phone.sent', () => { | |
| if (!loadingMessages.value) loadMessages(false) | |
| }) | |
| webhookChannel.bind('message.send.failed', () => { | |
| if (!loadingMessages.value) loadMessages(false) | |
| }) | |
| webhookChannel.bind('message.phone.received', (_: never) => { | |
| void handleInboundMessage() | |
| }) | |
| webhookChannel.bind('message.call.missed', (_: never) => { | |
| void handleInboundMessage() | |
| }) | |
| }) | |
| watch( | |
| () => route.params.id as string, | |
| (threadId, previousThreadId) => { | |
| if (!previousThreadId || threadId === previousThreadId) return | |
| threadsStore.setThreadId(threadId) | |
| void loadData() | |
| }, | |
| ) | |
| onBeforeUnmount(() => { | |
| if (webhookChannel) webhookChannel.unsubscribe() | |
| }) | |
| </script> | |
| <template> | |
| <VContainer class="px-0" :class="{ 'fill-height': lgAndUp }"> | |
| <div class="h-100"> | |
| <VAppBar> | |
| <VBtn v-if="mdAndDown" icon to="/threads"> | |
| <VIcon :icon="mdiArrowLeft" /> | |
| </VBtn> | |
| <VToolbarTitle v-if="currentThread"> | |
| <VTooltip | |
| v-if="currentThread.contact_details?.name?.trim()" | |
| :text="formatPhoneNumber(currentThread.contact)" | |
| location="bottom" | |
| > | |
| <template #activator="{ props }"> | |
| <span v-bind="props">{{ currentThreadContactTitle() }}</span> | |
| </template> | |
| </VTooltip> | |
| <template v-else>{{ currentThreadContactTitle() }}</template> | |
| </VToolbarTitle> | |
| <VMenu> | |
| <template #activator="{ props }"> | |
| <VBtn icon variant="text" class="mt-2" v-bind="props"> | |
| <VIcon :icon="mdiDotsVertical" /> | |
| </VBtn> | |
| </template> | |
| <VList | |
| class="pa-0" | |
| prepend-gap="24" | |
| :density="mdAndDown ? 'compact' : 'default'" | |
| > | |
| <VListItem | |
| v-if="currentThread?.contact_details" | |
| @click="contactDialog = true" | |
| > | |
| <template #prepend> | |
| <VIcon :icon="mdiSquareEditOutline" /> | |
| </template> | |
| <VListItemTitle>Edit Contact</VListItemTitle> | |
| </VListItem> | |
| <VListItem | |
| v-else-if="contactIsPhoneNumber" | |
| @click="contactDialog = true" | |
| > | |
| <template #prepend> | |
| <VIcon :icon="mdiAccountPlus" /> | |
| </template> | |
| <VListItemTitle>Add Contact</VListItemTitle> | |
| </VListItem> | |
| <VListItem | |
| v-if="currentThread && !currentThread.is_archived" | |
| @click.prevent="archiveThread" | |
| > | |
| <template #prepend> | |
| <VIcon :icon="mdiPackageDown" /> | |
| </template> | |
| <VListItemTitle>Archive</VListItemTitle> | |
| </VListItem> | |
| <VListItem | |
| v-if="currentThread && currentThread.is_archived" | |
| @click.prevent="unArchiveThread" | |
| > | |
| <template #prepend> | |
| <VIcon :icon="mdiPackageUp" /> | |
| </template> | |
| <VListItemTitle>Unarchive</VListItemTitle> | |
| </VListItem> | |
| <VListItem | |
| v-if="currentThread" | |
| @click.prevent="deleteThread(currentThread.id)" | |
| > | |
| <template #prepend> | |
| <VIcon :icon="mdiDelete" color="error" /> | |
| </template> | |
| <VListItemTitle>Delete Thread</VListItemTitle> | |
| </VListItem> | |
| </VList> | |
| </VMenu> | |
| </VAppBar> | |
| <VProgressLinear | |
| v-if="loadingMessages" | |
| class="mt-n5 py-1" | |
| color="primary" | |
| indeterminate | |
| /> | |
| <VContainer v-if="currentThread" class="pa-0"> | |
| <div | |
| ref="messageBody" | |
| class="messages-body no-scrollbar w-100 pl-2" | |
| :class="{ 'pr-7': lgAndUp }" | |
| > | |
| <VRow | |
| v-for="message in messages" | |
| :key="message.id" | |
| :style="{ visibility: messageVisibility }" | |
| > | |
| <VCol | |
| class="d-flex" | |
| :class="{ | |
| 'pr-10': mdAndDown && !isMT(message), | |
| 'pl-12 pr-4': mdAndDown && isMT(message), | |
| 'pl-16 ml-16': lgAndUp && isMT(message), | |
| 'pr-16 mr-16': lgAndUp && !isMT(message), | |
| }" | |
| > | |
| <VSpacer v-if="isMT(message)" /> | |
| <v-avatar | |
| v-if="isMo(message)" | |
| :class="{ | |
| 'ml-2': !mdAndUp, | |
| 'ml-4': mdAndUp, | |
| }" | |
| :color="currentThread.color" | |
| size="40" | |
| > | |
| <v-icon | |
| v-if="!startsWithLetter(message.contact)" | |
| color="white" | |
| >{{ mdiAccount }}</v-icon | |
| > | |
| <span v-else class="text-white text-headline-small">{{ | |
| message.contact.substring(0, 1) | |
| }}</span> | |
| </v-avatar> | |
| <VAvatar v-if="isMissedCall(message)" color="#1e1e1e"> | |
| <VIcon size="large" color="red" :icon="mdiCallMissed" /> | |
| </VAvatar> | |
| <!-- MT message menu --> | |
| <VMenu v-if="isMT(message)"> | |
| <template #activator="{ props }"> | |
| <VBtn icon variant="text" class="mt-2" v-bind="props"> | |
| <VIcon :icon="mdiDotsVertical" /> | |
| </VBtn> | |
| </template> | |
| <VList class="pa-0" prepend-gap="24" density="compact"> | |
| <VListItem | |
| v-if="canResend(message)" | |
| @click.prevent="resendMessage(message)" | |
| > | |
| <template #prepend | |
| ><VIcon size="small" :icon="mdiRefresh" | |
| /></template> | |
| <VListItemTitle class="text-body-medium" | |
| >Resend Message</VListItemTitle | |
| > | |
| </VListItem> | |
| <VListItem @click.prevent="copyMessageId(message)"> | |
| <template #prepend | |
| ><VIcon size="small" :icon="mdiContentCopy" | |
| /></template> | |
| <VListItemTitle class="text-body-medium" | |
| >Copy Message ID</VListItemTitle | |
| > | |
| </VListItem> | |
| <VListItem @click.prevent="deleteMessage(message)"> | |
| <template #prepend | |
| ><VIcon size="small" :icon="mdiDelete" color="error" | |
| /></template> | |
| <VListItemTitle class="text-body-medium" | |
| >Delete Message</VListItemTitle | |
| > | |
| </VListItem> | |
| </VList> | |
| </VMenu> | |
| <div :style="{ maxWidth: mdAndUp ? '50%' : '100%' }"> | |
| <VCard | |
| rounded="shaped" | |
| :variant="isMT(message) ? 'flat' : 'tonal'" | |
| :color="isMT(message) ? 'primary' : undefined" | |
| :class="{ 'ml-2': !isMT(message) }" | |
| > | |
| <VCardText | |
| v-if="message.content" | |
| class="text-break" | |
| style="white-space: pre-line" | |
| > | |
| <span | |
| v-if=" | |
| !isMissedCall(message) && isWhatsappFormatted(message) | |
| " | |
| v-html="formatWhatsappText(message.content)" | |
| /> | |
| <span v-else-if="!isMissedCall(message)">{{ | |
| message.content | |
| }}</span> | |
| <span v-else class="text-medium-emphasis" | |
| >Missed phone call</span | |
| > | |
| </VCardText> | |
| </VCard> | |
| <VCard | |
| v-if="message.attachments?.length" | |
| :class="{ 'ml-2': !isMT(message) }" | |
| > | |
| <VCardText class="pb-2"> | |
| <a | |
| v-for="(attachment, index) in message.attachments" | |
| :key="index" | |
| target="_blank" | |
| rel="noopener noreferrer" | |
| :href="attachment" | |
| class="text-decoration-none hover:text-decoration-underline text-body-medium mb-2 d-flex w-100" | |
| > | |
| <VIcon | |
| size="x-small" | |
| class="text-medium-emphasis mt-1" | |
| :icon="mdiPaperclip" | |
| /> | |
| {{ formatAttachmentName(attachment) }} | |
| </a> | |
| </VCardText> | |
| </VCard> | |
| <div class="d-flex mt-n2"> | |
| <p class="ml-2 text-medium-emphasis text-body-small mr-2"> | |
| {{ new Date(message.order_timestamp).toLocaleString() }} | |
| </p> | |
| <VSpacer /> | |
| <VTooltip location="bottom"> | |
| <template #activator="{ props }"> | |
| <div v-bind="props"> | |
| <VIcon | |
| v-if="message.status === 'expired'" | |
| color="warning" | |
| class="mt-2" | |
| :icon="mdiAlert" | |
| /> | |
| <VProgressCircular | |
| v-else-if="isPending(message)" | |
| indeterminate | |
| :size="14" | |
| :width="1" | |
| class="mt-2" | |
| :color="statusColor(message)" | |
| /> | |
| <VIcon | |
| v-else-if="message.status === 'delivered'" | |
| color="primary" | |
| class="mt-2" | |
| :icon="mdiCheckAll" | |
| /> | |
| <VIcon | |
| v-else-if="message.status === 'sent'" | |
| class="mt-2" | |
| :icon="mdiCheck" | |
| /> | |
| <VIcon | |
| v-else-if="message.status === 'failed'" | |
| color="error" | |
| class="mt-2" | |
| :icon="mdiAlert" | |
| /> | |
| </div> | |
| </template> | |
| <span>{{ message.failure_reason || message.status }}</span> | |
| </VTooltip> | |
| </div> | |
| </div> | |
| <!-- MO message menu --> | |
| <VMenu v-if="!isMT(message)"> | |
| <template #activator="{ props }"> | |
| <VBtn icon variant="text" class="mt-2" v-bind="props"> | |
| <VIcon :icon="mdiDotsVertical" /> | |
| </VBtn> | |
| </template> | |
| <VList class="pa-0" prepend-gap="16" density="compact"> | |
| <VListItem | |
| v-if="canResend(message)" | |
| @click.prevent="resendMessage(message)" | |
| > | |
| <template #prepend | |
| ><VIcon size="small" :icon="mdiRefresh" | |
| /></template> | |
| <VListItemTitle class="text-body-medium" | |
| >Resend Message</VListItemTitle | |
| > | |
| </VListItem> | |
| <VListItem @click.prevent="copyMessageId(message)"> | |
| <template #prepend | |
| ><VIcon size="small" :icon="mdiContentCopy" | |
| /></template> | |
| <VListItemTitle class="text-body-medium" | |
| >Copy Message ID</VListItemTitle | |
| > | |
| </VListItem> | |
| <VListItem @click.prevent="deleteMessage(message)"> | |
| <template #prepend | |
| ><VIcon size="small" :icon="mdiDelete" color="error" | |
| /></template> | |
| <VListItemTitle class="text-body-medium" | |
| >Delete Message</VListItemTitle | |
| > | |
| </VListItem> | |
| </VList> | |
| </VMenu> | |
| </VCol> | |
| </VRow> | |
| </div> | |
| <VFooter app class="py-0" color="#121212"> | |
| <VContainer class="pb-0 pt-0"> | |
| <VForm ref="form" class="d-flex"> | |
| <VTextField | |
| v-model="formMessage" | |
| :disabled="submitting || !contactIsPhoneNumber" | |
| variant="solo" | |
| :rules="formMessageRules" | |
| :placeholder=" | |
| contactIsPhoneNumber | |
| ? 'Type your message here' | |
| : 'You cannot send messages to ' + contact | |
| " | |
| rounded | |
| @keydown.enter="sendMessage" | |
| /> | |
| <VBtn | |
| :disabled="submitting || !contactIsPhoneNumber" | |
| type="submit" | |
| color="primary" | |
| class="ml-2" | |
| icon | |
| size="large" | |
| @click="sendMessage" | |
| > | |
| <VProgressCircular | |
| v-if="submitting" | |
| indeterminate | |
| :size="20" | |
| :width="3" | |
| color="pink" | |
| /> | |
| <VIcon :icon="mdiSend" /> | |
| </VBtn> | |
| </VForm> | |
| </VContainer> | |
| </VFooter> | |
| </VContainer> | |
| </div> | |
| <ContactDialog | |
| v-model="contactDialog" | |
| :contact="currentThread?.contact_details" | |
| :initial-phone-number="currentThread?.contact ?? ''" | |
| :refresh-contacts="false" | |
| @saved="refreshThreadContact" | |
| /> | |
| </VContainer> | |
| </template> | |
| <style lang="scss"> | |
| .messages-body { | |
| padding-top: 50px; | |
| max-height: calc(100vh - 170px); | |
| position: absolute; | |
| width: calc(100vw - 8px); | |
| bottom: 94px; | |
| } | |
| @media (min-width: 960px) { | |
| .messages-body { | |
| max-width: 900px; | |
| } | |
| } | |
| @media (min-width: 1280px) { | |
| .messages-body { | |
| max-width: 1185px; | |
| } | |
| } | |
| @media (min-width: 1545px) { | |
| .messages-body { | |
| max-width: 1280px; | |
| } | |
| } | |
| @media (min-width: 2138px) { | |
| .messages-body { | |
| max-width: 2000px; | |
| } | |
| } | |
| .no-scrollbar { | |
| overflow-x: hidden; | |
| -ms-overflow-style: none; | |
| overflow-y: scroll; | |
| &::-webkit-scrollbar { | |
| display: none; | |
| } | |
| } | |
| </style> | |