/| hack — table layout
+ ignored width: 100% on the row, so the row grew to its content width and
+ pushed past the a-table column boundary. */
.inbounds-page .tr-table-box {
- display: inline-flex;
- gap: 6px;
+ display: flex;
+ gap: 8px;
align-items: center;
width: 100%;
min-width: 0;
+ box-sizing: border-box;
+ padding: 2px 10px;
+ border-radius: 100px;
+ background: rgba(255, 255, 255, 0.04);
}
+ /* Fixed widths so the bar starts/ends at the same X position across all
+ rows — without this, "126.45 MB" and "0 B" pushed the bar to different
+ spots, which read as misalignment in the column. */
.inbounds-page .tr-table-rt,
.inbounds-page .tr-table-lt {
flex: 0 0 auto;
white-space: nowrap;
font-variant-numeric: tabular-nums;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+ .inbounds-page .tr-table-rt {
+ text-align: end;
+ flex-basis: 70px;
+ min-width: 70px;
+ }
+ .inbounds-page .tr-table-lt {
+ text-align: start;
+ flex-basis: 28px;
+ min-width: 28px;
}
- .inbounds-page .tr-table-rt { text-align: end; }
- .inbounds-page .tr-table-lt { text-align: start; }
.inbounds-page .tr-table-bar {
- flex: 1 1 auto;
- min-width: 60px;
+ flex: 1 1 0;
+ min-width: 0;
+ overflow: hidden;
+ display: block;
}
/* Make the progress widget fill its flex cell, and align the inner fill
diff --git a/web/html/xray.html b/web/html/xray.html
index 61c40c80..3dfbdd33 100644
--- a/web/html/xray.html
+++ b/web/html/xray.html
@@ -206,7 +206,7 @@
{ title: '{{ i18n "pages.xray.outbound.tag"}}', dataIndex: 'tag', align: 'center', width: 50 },
{ title: '{{ i18n "protocol"}}', align: 'center', width: 50, scopedSlots: { customRender: 'protocol' } },
{ title: '{{ i18n "pages.xray.outbound.address"}}', align: 'center', width: 50, scopedSlots: { customRender: 'address' } },
- { title: '{{ i18n "pages.inbounds.traffic" }}', align: 'center', width: 50, scopedSlots: { customRender: 'traffic' } },
+ { title: '{{ i18n "pages.inbounds.traffic" }}', align: 'center', width: 180, scopedSlots: { customRender: 'traffic' } },
{ title: '{{ i18n "pages.xray.outbound.testResult" }}', align: 'center', width: 120, scopedSlots: { customRender: 'testResult' } },
{ title: '{{ i18n "pages.xray.outbound.test" }}', align: 'center', width: 60, scopedSlots: { customRender: 'test' } },
];
|