From 545536bdf36863786843a6b833123fc144dc0c28 Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Wed, 5 Aug 2026 15:15:54 +0800 Subject: [PATCH] refactor(frontend): enhance MobileCallPage layout and button accessibility Refactor the layout of the MobileCallPage component to improve structure and accessibility. Replace the Button component with a native button element, adding appropriate aria-labels and titles for better screen reader support. Adjust the positioning of elements for a more cohesive user experience. --- .../src/components/pages/MobileCallPage.tsx | 43 ++++++++++++------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/pages/MobileCallPage.tsx b/frontend/src/components/pages/MobileCallPage.tsx index 7b61196..4c7c6ad 100644 --- a/frontend/src/components/pages/MobileCallPage.tsx +++ b/frontend/src/components/pages/MobileCallPage.tsx @@ -12,7 +12,6 @@ import { ScanLine, Video, } from "lucide-react"; -import { Button } from "@/components/ui/button"; import { NetworkQualityIndicator } from "@/components/network-quality-indicator"; import { DropdownMenu, @@ -542,12 +541,19 @@ export function MobileCallPage({ assistantId }: { assistantId: string }) { {!inCall && ( -
-
-

- {assistantName || "助手"} -

-
+ <> +
+
+

+ {assistantName || "助手"} +

+ {error && ( +

{error}

+ )} +
+
+
+
- + +
- {error && ( -

{error}

- )} + + {status === "failed" || callEnded ? "重新开始通话" : "开始通话"} +
-
+ )} {inCall && (