fix(ui): сделать сетевые показатели и настройки читаемыми в обеих темах
This commit is contained in:
1 parent
3c9096804b
commit
3d51bba86d
21 files changed
+5148
-31
No files matched your search
@@ -949,7 +949,8 @@ function RouteOptimizerContent({requestedServer,onSelectServer}:{requestedServer
|
||||
contentClassName="px-5 py-4 flex flex-col gap-4"
|
||||
>
|
||||
|
||||
<div className={cn("flex flex-col gap-3 transition-opacity", !ecmpEnabled && "opacity-40 pointer-events-none")}>
|
||||
<fieldset disabled={!ecmpEnabled} className="flex min-w-0 flex-col gap-3">
|
||||
<legend className="sr-only">Параметры черновика ECMP</legend>
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<span className="text-xs text-muted-foreground">Макс. путей</span>
|
||||
<div className="flex items-center gap-2">
|
||||
@@ -966,7 +967,7 @@ function RouteOptimizerContent({requestedServer,onSelectServer}:{requestedServer
|
||||
{([["per-dst","По dst"],["per-conn","По conn"],["per-packet","По пакет"]] as const).map(([v, l]) => (
|
||||
<button type="button" disabled={!ecmpEnabled} aria-pressed={ecmpAlgo===v} key={v} onClick={() => setEcmpAlgo(v)}
|
||||
className={cn("flex-1 transition-colors cursor-pointer",
|
||||
ecmpAlgo === v ? "bg-focus text-primary-foreground" : "text-muted-foreground hover:bg-muted")}>
|
||||
ecmpAlgo === v ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted")}>
|
||||
{l}
|
||||
</button>
|
||||
))}
|
||||
@@ -977,7 +978,7 @@ function RouteOptimizerContent({requestedServer,onSelectServer}:{requestedServer
|
||||
<InfoIcon aria-hidden="true" className="size-3 shrink-0 mt-0.5" />
|
||||
<span>Черновой сценарий ECMP для сравнения настроек.</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</OpsPanel>
|
||||
|
||||
{/* RPF Card */}
|
||||
|
||||
Reference in new issue
Block a user