(feat): improve mobile
(feat): add camera sharing (fix): vite tauri connection (fix): methanium/ui theme not applied to call popout
This commit is contained in:
parent
b5ce3c554d
commit
62aaa7c01d
31 changed files with 1915 additions and 859 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ export default defineConfig({
|
|||
? {
|
||||
protocol: "ws",
|
||||
host,
|
||||
port: 1421,
|
||||
clientPort: 3000,
|
||||
}
|
||||
: undefined,
|
||||
watch: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue