(feat): improve mobile
Some checks failed
/ release (push) Has been cancelled
/ build-web (push) Has been cancelled
/ build-desktop (linux) (push) Has been cancelled
/ build-mobile (push) Has been cancelled

(feat): add camera sharing
(fix): vite tauri connection
(fix): methanium/ui theme not applied to call popout
This commit is contained in:
Alois 2026-08-01 01:25:41 +02:00
commit 62aaa7c01d
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
31 changed files with 1915 additions and 859 deletions

View file

@ -1,12 +1,14 @@
import { RoomEvent } from "livekit-client";
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
import { useCall, getRoom } from "../../store";
import { getRoom, setUsersInFocusedViewHidden, useCall } from "../../store";
import Base from "../../components/modals/base";
import { useIsMobile } from "@methanium/ui";
const SECONDARY_ROW_HEIGHT_PX = 180;
const STACK_GAP_PX = 12;
export default function View() {
const isMobile = useIsMobile();
const room = getRoom();
const layoutVersion = useCall((state) => state.layoutVersion);
@ -27,6 +29,10 @@ export default function View() {
const [isFocusedTileFlush, setIsFocusedTileFlush] = useState(false);
const [participantVersion, setParticipantVersion] = useState(0);
useEffect(() => {
if (isMobile) setUsersInFocusedViewHidden(true);
}, [isMobile]);
useEffect(() => {
const syncParticipants = () => {
setParticipantVersion((version) => version + 1);