Skip to content
Open
Changes from 3 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
5 changes: 5 additions & 0 deletions dashboard/src/components/chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
location="end"
offset="8"
open-on-hover
:open-on-click="isTouchDevice"
:close-on-content-click="true"
>
<template #activator="{ props: transportMenuProps }">
Expand Down Expand Up @@ -252,6 +253,7 @@
location="end"
offset="8"
open-on-hover
:open-on-click="isTouchDevice"
:close-on-content-click="true"
>
<template #activator="{ props: languageMenuProps }">
Expand Down Expand Up @@ -817,6 +819,9 @@ const transportMode = ref<TransportMode>(
? "websocket"
: "sse",
);

const isTouchDevice = navigator.maxTouchPoints > 0 || 'ontouchstart' in window;

const transportOptions: Array<{ value: TransportMode; labelKey: string }> = [
{ value: "sse", labelKey: "transport.sse" },
{ value: "websocket", labelKey: "transport.websocket" },
Expand Down