fix(webcrt): blend session tab close mark into device name

Remove the boxed close control so the x sits inline with the tab label.
This commit is contained in:
hansjone 2026-07-30 10:34:25 +08:00
parent 5fa73c9a4f
commit 2ac8d96409
2 changed files with 37 additions and 14 deletions

View file

@ -390,18 +390,18 @@ export function WebcrtPage() {
<span>
{deviceLabel(tab.target)}
{tab.status === "connecting" ? ` (${t("webcrt.status.connecting")})` : ""}
<button
type="button"
className="webcrt-tabs__close"
aria-label={t("webcrt.disconnect")}
onClick={(e) => {
e.stopPropagation();
void closeTab(tab.key);
}}
>
×
</button>
</span>
<button
type="button"
className="webcrt-tabs__close"
aria-label={t("webcrt.disconnect")}
onClick={(e) => {
e.stopPropagation();
void closeTab(tab.key);
}}
>
×
</button>
</div>
))}
</div>