From b319dd0c3a5b32b5532dc1fa114124f80bb645ea Mon Sep 17 00:00:00 2001 From: Sanaei Date: Thu, 23 Jul 2026 20:20:32 +0200 Subject: [PATCH] fix(panel): align telegram icon with its label in home card actions The .tg-icon override (display: inline-block; vertical-align: -2px) defeated the default .anticon flex centering that every other card action icon relies on, so the icon rendered ~2px below the @XrayUI text. Dropping the override lets AntD center it like its neighbors. --- frontend/src/pages/index/IndexPage.css | 7 +------ frontend/src/pages/index/IndexPage.tsx | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/pages/index/IndexPage.css b/frontend/src/pages/index/IndexPage.css index 5efca3366..3ca7c921e 100644 --- a/frontend/src/pages/index/IndexPage.css +++ b/frontend/src/pages/index/IndexPage.css @@ -12,7 +12,7 @@ flex-wrap: nowrap; } -.index-page .action > span:not(.anticon):not(.tg-icon) { +.index-page .action > span:not(.anticon) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -36,11 +36,6 @@ margin-inline-end: 0; } -.index-page .tg-icon { - display: inline-block; - vertical-align: -2px; -} - .index-page .ip-toggle-icon { cursor: pointer; font-size: 16px; diff --git a/frontend/src/pages/index/IndexPage.tsx b/frontend/src/pages/index/IndexPage.tsx index 02e59dd18..97b08b759 100644 --- a/frontend/src/pages/index/IndexPage.tsx +++ b/frontend/src/pages/index/IndexPage.tsx @@ -246,7 +246,7 @@ export default function IndexPage() { hoverable actions={[ - ,