mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-13 09:36:05 +00:00
fix: filter view in mobile
Some checks are pending
Release 3X-UI / Analyze Go code (push) Waiting to run
Release 3X-UI / build (386) (push) Blocked by required conditions
Release 3X-UI / build (amd64) (push) Blocked by required conditions
Release 3X-UI / build (arm64) (push) Blocked by required conditions
Release 3X-UI / build (armv5) (push) Blocked by required conditions
Release 3X-UI / build (armv6) (push) Blocked by required conditions
Release 3X-UI / build (armv7) (push) Blocked by required conditions
Release 3X-UI / build (s390x) (push) Blocked by required conditions
Release 3X-UI / Build for Windows (push) Blocked by required conditions
Some checks are pending
Release 3X-UI / Analyze Go code (push) Waiting to run
Release 3X-UI / build (386) (push) Blocked by required conditions
Release 3X-UI / build (amd64) (push) Blocked by required conditions
Release 3X-UI / build (arm64) (push) Blocked by required conditions
Release 3X-UI / build (armv5) (push) Blocked by required conditions
Release 3X-UI / build (armv6) (push) Blocked by required conditions
Release 3X-UI / build (armv7) (push) Blocked by required conditions
Release 3X-UI / build (s390x) (push) Blocked by required conditions
Release 3X-UI / Build for Windows (push) Blocked by required conditions
This commit is contained in:
parent
c88627a839
commit
7117d19fd1
1 changed files with 26 additions and 0 deletions
|
|
@ -182,6 +182,7 @@
|
|||
<a-input v-if="!enableFilter" v-model.lazy="searchKey" placeholder='{{ i18n "search" }}' autofocus
|
||||
:style="{ maxWidth: '300px' }" :size="isMobile ? 'small' : ''"></a-input>
|
||||
<a-radio-group v-if="enableFilter" v-model="filterBy" @change="filterInbounds" button-style="solid"
|
||||
class="mobile-filter-group"
|
||||
:size="isMobile ? 'small' : ''">
|
||||
<a-radio-button value>{{ i18n "none" }}</a-radio-button>
|
||||
<a-radio-button value="active">{{ 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue