diff --git a/frontend_nuxt/app.vue b/frontend_nuxt/app.vue index a79f1c6d2..8eab548cf 100644 --- a/frontend_nuxt/app.vue +++ b/frontend_nuxt/app.vue @@ -22,7 +22,6 @@ - @@ -31,7 +30,6 @@ import HeaderComponent from '~/components/HeaderComponent.vue' import MenuComponent from '~/components/MenuComponent.vue' import GlobalPopups from '~/components/GlobalPopups.vue' import ConfirmDialog from '~/components/ConfirmDialog.vue' -import ChatFloating from '~/components/ChatFloating.vue' import { useIsMobile } from '~/utils/screen' const isMobile = useIsMobile() diff --git a/frontend_nuxt/components/ChatFloating.vue b/frontend_nuxt/components/ChatFloating.vue deleted file mode 100644 index d1202bfba..000000000 --- a/frontend_nuxt/components/ChatFloating.vue +++ /dev/null @@ -1,56 +0,0 @@ - - - - - diff --git a/frontend_nuxt/pages/message-box/[id].vue b/frontend_nuxt/pages/message-box/[id].vue index 5f049289e..fee571f53 100644 --- a/frontend_nuxt/pages/message-box/[id].vue +++ b/frontend_nuxt/pages/message-box/[id].vue @@ -7,10 +7,6 @@

{{ isChannel ? conversationName : otherParticipant?.username }}

-
- - -
@@ -86,10 +82,6 @@ const { fetchUnreadCount: refreshGlobalUnreadCount } = useUnreadCount() const { fetchChannelUnread: refreshChannelUnread } = useChannelsUnreadCount() let subscription = null -const chatFloating = useState('chatFloating', () => false) -const chatPath = useState('chatPath', () => '/message-box') -const isFloat = computed(() => route.query.float === '1') - const messages = ref([]) const participants = ref([]) const loading = ref(true) @@ -123,24 +115,6 @@ function handleAvatarError(event) { event.target.src = '/default-avatar.svg' } -function minimizeChat() { - chatPath.value = route.fullPath - chatFloating.value = true - navigateTo('/') -} - -function maximizeChat() { - if (window.parent) { - window.parent.postMessage( - { - type: 'maximize-chat', - path: route.fullPath.replace('?float=1', '').replace('&float=1', ''), - }, - '*', - ) - } -} - // No changes needed here, as renderMarkdown is now imported. // The old function is removed. @@ -437,7 +411,6 @@ onUnmounted(() => { font-size: 18px; font-weight: 600; margin: 0; - flex: 1; } .messages-list { @@ -551,15 +524,4 @@ onUnmounted(() => { margin-left: 10px; margin-right: 10px; } - -.chat-controls { - margin-left: auto; - cursor: pointer; - display: flex; - align-items: center; -} - -.control-icon { - font-size: 16px; -} diff --git a/frontend_nuxt/pages/message-box/index.vue b/frontend_nuxt/pages/message-box/index.vue index 0f95ffa73..17f14587c 100644 --- a/frontend_nuxt/pages/message-box/index.vue +++ b/frontend_nuxt/pages/message-box/index.vue @@ -1,9 +1,5 @@