mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-09 06:06:08 +00:00
6286bb8676
- AppSidebar: switch the inbounds icon from UserOutlined (a single
person — wrong semantic) to ImportOutlined, matching the empty-state
icon and reflecting the actual concept of an incoming entry point.
- usePageTitle: stop hardcoding English titles; resolve them through
i18n (menu.* keys are already translated), so the browser tab now
follows the active language.
- InboundList / NodeList: replace the bare "—" empty cell with a
centered icon + t('noData') message (ImportOutlined for inbounds,
ClusterOutlined for nodes), and swap opacity:0.4 for
var(--ant-color-text-secondary) so the text stays readable on the
light theme's tinted card background.
145 lines
2.0 KiB
CSS
145 lines
2.0 KiB
CSS
.toolbar {
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.name-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.name-cell .name {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.name-cell .remark {
|
|
font-size: 12px;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.address-header {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.ip-toggle-icon {
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.ip-toggle-icon:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.address-hidden {
|
|
filter: blur(5px);
|
|
transition: filter 0.2s ease;
|
|
}
|
|
|
|
.address-visible {
|
|
filter: none;
|
|
}
|
|
|
|
.node-cards {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.node-card {
|
|
border: 1px solid var(--ant-color-border-secondary);
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
background: var(--ant-color-fill-quaternary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.card-expand {
|
|
font-size: 12px;
|
|
opacity: 0.6;
|
|
transition: transform 150ms ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.card-expand.is-expanded {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.node-name {
|
|
font-weight: 600;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.card-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.row-action-trigger {
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.card-stats {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.stat-row {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
opacity: 0.6;
|
|
min-width: 96px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.card-stats .ant-tag {
|
|
margin: 0;
|
|
}
|
|
|
|
.card-history {
|
|
margin-top: 4px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--ant-color-border-secondary);
|
|
}
|
|
|
|
.card-empty {
|
|
text-align: center;
|
|
color: var(--ant-color-text-secondary);
|
|
padding: 24px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|