refactor(xray): drop stale --ant-primary-color fallbacks and hex literals

- RoutingTab .drop-before/.drop-after box-shadow: #1677ff → var(--ant-color-primary)
- OutboundFormModal .random-icon: drop the --ant-primary-color/#1890ff
  pair (the old AntD v4 token name with stale fallback) for the v6
  --ant-color-primary; .danger-icon hex #ff4d4f → var(--ant-color-error).
- XrayPage .restart-icon: same drop of the --ant-primary-color fallback.

These were all leftovers from the AntD v4 → v6 rename — the v6
--ant-color-primary is already populated by ConfigProvider, so the
fallback hex was dead code that would only trigger if AntD wasn't
mounted.
This commit is contained in:
MHSanaei 2026-05-25 13:42:09 +02:00
parent bb69cad361
commit 08caf53ba6
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A
3 changed files with 5 additions and 5 deletions

View file

@ -1,12 +1,12 @@
.random-icon { .random-icon {
cursor: pointer; cursor: pointer;
color: var(--ant-primary-color, #1890ff); color: var(--ant-color-primary);
margin-left: 4px; margin-left: 4px;
} }
.danger-icon { .danger-icon {
cursor: pointer; cursor: pointer;
color: #ff4d4f; color: var(--ant-color-error);
margin-left: 8px; margin-left: 8px;
} }

View file

@ -27,11 +27,11 @@
} }
.drop-before > td { .drop-before > td {
box-shadow: inset 0 2px 0 0 #1677ff; box-shadow: inset 0 2px 0 0 var(--ant-color-primary);
} }
.drop-after > td { .drop-after > td {
box-shadow: inset 0 -2px 0 0 #1677ff; box-shadow: inset 0 -2px 0 0 var(--ant-color-primary);
} }
.row-index { .row-index {

View file

@ -51,7 +51,7 @@
.xray-page .restart-icon { .xray-page .restart-icon {
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
color: var(--ant-primary-color, #1890ff); color: var(--ant-color-primary);
} }
.xray-page .restart-result { .xray-page .restart-result {