(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

@ -5,7 +5,14 @@ import {
PopoverTrigger,
useIsMobile,
} from "@methanium/ui";
import { ArrowLeft, House, Phone, Settings, User } from "lucide-react";
import {
ArrowLeft,
EllipsisVertical,
House,
Phone,
Settings,
User,
} from "lucide-react";
import { useLocation, useNavigate, useSearch } from "@tanstack/react-router";
import { joinCall, useCall } from "@tensamin/call/store";
import Wrapper from "@tensamin/user/wrapper";
@ -40,6 +47,8 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) {
const [userInfoOpen, setUserInfoOpen] = useState(false);
const { callId } = useCall();
return (
<div
data-tauri-drag-region
@ -76,6 +85,9 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) {
</Button>
</>
)}
{isMobile && pathname === "/call" && callId && (
<p className="font-medium text-[1.07rem]">{displayCallId(callId)}</p>
)}
{pathname === "/chat" && id && (
<Wrapper
userId={id}
@ -172,6 +184,11 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) {
)}
</>
)}
{isMobile && pathname === "/call" && callId && (
<Button variant="ghost">
<EllipsisVertical />
</Button>
)}
<Controls className="mr-2" />
</div>
</div>

View file

@ -106,7 +106,7 @@ export default defineConfig({
? {
protocol: "ws",
host,
port: 1421,
clientPort: 3000,
}
: undefined,
watch: {