mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 12:44:22 +00:00
refactor(frontend): drop !important overrides from pages CSS (Clients + Log modals + Settings tabs)
- ClientsPage: pagination size-changer `min-width !important` removed; the 3-level selector specificity already beats AntD's defaults. Scope `body.dark .client-card` to `.clients-page.is-dark .client-card` (avoid leaking into other pages). - LogModal + XrayLogModal: move the mobile full-screen tweaks (`top: 0`, `padding-bottom: 0`, `max-width: 100vw`) from `!important` class rules to the Modal's `style` prop; keep `.ant-modal-content` / `.ant-modal-body` overrides as plain CSS via the className. - SubscriptionFormatsTab: drop `display: block !important` on `.nested-block` — div is already block by default. - TwoFactorModal: drop `padding/background/border-radius !important` on `.qr-code`; AntD QRCode handles those itself.
This commit is contained in:
parent
9292464418
commit
e386767d79
7 changed files with 5 additions and 19 deletions
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
.clients-page .ant-pagination-options-size-changer,
|
.clients-page .ant-pagination-options-size-changer,
|
||||||
.clients-page .ant-pagination-options-size-changer .ant-select-selector {
|
.clients-page .ant-pagination-options-size-changer .ant-select-selector {
|
||||||
min-width: 100px !important;
|
min-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clients-page .loading-spacer {
|
.clients-page .loading-spacer {
|
||||||
|
|
@ -154,7 +154,7 @@
|
||||||
|
|
||||||
.card-pagination .ant-pagination-options-size-changer,
|
.card-pagination .ant-pagination-options-size-changer,
|
||||||
.card-pagination .ant-pagination-options-size-changer .ant-select-selector {
|
.card-pagination .ant-pagination-options-size-changer .ant-select-selector {
|
||||||
min-width: 88px !important;
|
min-width: 88px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bulk-count {
|
.bulk-count {
|
||||||
|
|
@ -177,7 +177,7 @@
|
||||||
background: rgba(22, 119, 255, 0.06);
|
background: rgba(22, 119, 255, 0.06);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark .client-card {
|
.clients-page.is-dark .client-card {
|
||||||
background: rgba(255, 255, 255, 0.03);
|
background: rgba(255, 255, 255, 0.03);
|
||||||
border-color: rgba(255, 255, 255, 0.1);
|
border-color: rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -165,12 +165,6 @@ html[data-theme="ultra-dark"] .log-container {
|
||||||
--log-divider: rgba(255, 255, 255, 0.12);
|
--log-divider: rgba(255, 255, 255, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
.logmodal-mobile {
|
|
||||||
top: 0 !important;
|
|
||||||
padding-bottom: 0 !important;
|
|
||||||
max-width: 100vw !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logmodal-mobile .ant-modal-content {
|
.logmodal-mobile .ant-modal-content {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@ export default function LogModal({ open, onClose }: LogModalProps) {
|
||||||
open={open}
|
open={open}
|
||||||
footer={null}
|
footer={null}
|
||||||
width={isMobile ? '100vw' : 800}
|
width={isMobile ? '100vw' : 800}
|
||||||
|
style={isMobile ? { top: 0, paddingBottom: 0, maxWidth: '100vw' } : undefined}
|
||||||
className={isMobile ? 'logmodal-mobile' : undefined}
|
className={isMobile ? 'logmodal-mobile' : undefined}
|
||||||
onCancel={onClose}
|
onCancel={onClose}
|
||||||
title={titleNode}
|
title={titleNode}
|
||||||
|
|
|
||||||
|
|
@ -125,12 +125,6 @@ html[data-theme="ultra-dark"] .log-container {
|
||||||
--log-divider: rgba(255, 255, 255, 0.12);
|
--log-divider: rgba(255, 255, 255, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
.xraylog-modal-mobile {
|
|
||||||
top: 0 !important;
|
|
||||||
padding-bottom: 0 !important;
|
|
||||||
max-width: 100vw !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.xraylog-modal-mobile .ant-modal-content {
|
.xraylog-modal-mobile .ant-modal-content {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ export default function XrayLogModal({ open, onClose }: XrayLogModalProps) {
|
||||||
open={open}
|
open={open}
|
||||||
footer={null}
|
footer={null}
|
||||||
width={isMobile ? '100vw' : '80vw'}
|
width={isMobile ? '100vw' : '80vw'}
|
||||||
|
style={isMobile ? { top: 0, paddingBottom: 0, maxWidth: '100vw' } : undefined}
|
||||||
className={isMobile ? 'xraylog-modal-mobile' : undefined}
|
className={isMobile ? 'xraylog-modal-mobile' : undefined}
|
||||||
onCancel={onClose}
|
onCancel={onClose}
|
||||||
title={
|
title={
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
.nested-block {
|
.nested-block {
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
display: block !important;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,6 @@
|
||||||
|
|
||||||
.qr-code {
|
.qr-code {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0 !important;
|
|
||||||
background: #fff;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-token {
|
.qr-token {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue