From 7117d19fd13be6eca6d4ee4e34749860a44e1e9c Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 6 May 2026 14:45:46 +0200 Subject: [PATCH] fix: filter view in mobile --- web/html/inbounds.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/web/html/inbounds.html b/web/html/inbounds.html index 2c81e0da..c84dc551 100644 --- a/web/html/inbounds.html +++ b/web/html/inbounds.html @@ -182,6 +182,7 @@ {{ i18n "none" }} {{ i18n "subscription.active" @@ -2241,6 +2242,31 @@ #content-layout>.ant-layout-content>.ant-spin-nested-loading>div>.ant-spin { left: 50vw !important; } + + /* Keep filter choices in a single horizontal line on phones. */ + .inbounds-page .mobile-filter-group { + display: flex; + flex-wrap: nowrap; + max-width: 100%; + overflow-x: auto; + overflow-y: hidden; + padding-bottom: 2px; + -webkit-overflow-scrolling: touch; + scrollbar-width: thin; + } + .inbounds-page .mobile-filter-group .ant-radio-button-wrapper { + flex: 0 0 auto; + white-space: nowrap; + } + + /* Prevent mobile row content from splitting across multiple lines. */ + .inbounds-page .ant-table-tbody > tr > td { + white-space: nowrap; + } + .inbounds-page .ant-table-tbody > tr > td:nth-child(3) { + overflow: hidden; + text-overflow: ellipsis; + } } /* Protocol cell — wrap tags into a flex grid with consistent gap so