mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 03:30:49 +08:00
Simplify WebCRT device list chrome.
Drop the sidebar refresh control and bordered pager buttons; keep page meta with plain chevrons. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
b8fa2c6725
commit
3bd5d5b7da
2 changed files with 12 additions and 29 deletions
|
|
@ -289,14 +289,6 @@ export function WebcrtPage() {
|
|||
<aside className="webcrt-sidebar">
|
||||
<div className="webcrt-sidebar__header">
|
||||
<div className="webcrt-sidebar__title">{t("webcrt.deviceList")}</div>
|
||||
<button
|
||||
type="button"
|
||||
className="webcrt-icon-btn"
|
||||
title={t("common.refresh")}
|
||||
onClick={() => void targetsQuery.refetch()}
|
||||
>
|
||||
↻
|
||||
</button>
|
||||
</div>
|
||||
<div className="webcrt-sidebar__search">
|
||||
<input
|
||||
|
|
@ -363,10 +355,10 @@ export function WebcrtPage() {
|
|||
<div className="webcrt-sidebar__pager">
|
||||
<span>{t("common.pagerMeta", { total, page, pages })}</span>
|
||||
<div className="webcrt-sidebar__pager-btns">
|
||||
<button type="button" disabled={page <= 1} onClick={() => setPage((p) => Math.max(1, p - 1))}>
|
||||
<button type="button" disabled={page <= 1} onClick={() => setPage((p) => Math.max(1, p - 1))} aria-label="prev">
|
||||
‹
|
||||
</button>
|
||||
<button type="button" disabled={page >= pages} onClick={() => setPage((p) => p + 1)}>
|
||||
<button type="button" disabled={page >= pages} onClick={() => setPage((p) => p + 1)} aria-label="next">
|
||||
›
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue