diff --git a/src/app.css b/src/app.css index ae198f34..8e9d04a8 100644 --- a/src/app.css +++ b/src/app.css @@ -394,6 +394,35 @@ progress[value]::-webkit-progress-value { @apply w-full md:left-[18.5rem] md:w-[calc(100%-18.5rem-var(--sair))]; } +.cw-video-call-content { + @apply w-full md:left-[calc(18.5rem+18rem)] md:w-[calc(100%-18.5rem-18rem-var(--sair))]; +} + +/* Voice: desktop split — plain CSS so / in calc is not parsed as Tailwind slash syntax */ +.cw-split-video { + width: 100%; +} + +.cw-split-chat { + width: 100%; +} + +@media (min-width: 768px) { + .cw-split-video { + left: 18.5rem; + right: auto; + width: calc((100vw - 18.5rem - var(--sair)) / 2); + max-width: none; + } + + .cw-split-chat { + left: calc(18.5rem + (100vw - 18.5rem - var(--sair)) / 2); + right: auto; + width: calc((100vw - 18.5rem - var(--sair)) / 2); + max-width: none; + } +} + .cw-full { @apply w-full md:left-[4rem] md:w-[calc(100%-4rem-var(--sair))]; } @@ -430,6 +459,19 @@ body.keyboard-open .hide-on-keyboard { @apply min-w-0; } +.chat__compose-zone.cw-video-call-content { + @apply md:left-[calc(18.5rem+18rem)] md:w-[calc(100%-18.5rem-18rem-var(--sair))]; +} + +@media (min-width: 768px) { + .chat__compose-zone.cw-split-chat { + left: calc(18.5rem + (100vw - 18.5rem - var(--sair)) / 2); + right: auto; + width: calc((100vw - 18.5rem - var(--sair)) / 2); + max-width: none; + } +} + .chat__scroll-down { @apply pb-sai fixed bottom-28 right-4 z-feature md:bottom-16; } diff --git a/src/app/components/VideoCallContent.svelte b/src/app/components/VideoCallContent.svelte new file mode 100644 index 00000000..1da29813 --- /dev/null +++ b/src/app/components/VideoCallContent.svelte @@ -0,0 +1,131 @@ + + +{#if showPanel && (showTileGrid || allowEmptyPanel)} +
No camera video yet.
+Use the camera control in the voice widget to share video.
+