mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 20:30:45 +08:00
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:
parent
5fa73c9a4f
commit
2ac8d96409
2 changed files with 37 additions and 14 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue