Эх сурвалжийг харах

style(OcrFavoriteView, OcrView): 优化 tron 地址显示样式

- 设置 tron 地址的固定宽度为45px
- 文本居中对齐
- 确保宽度生效,使用 inline-block显示方式
wui 9 сар өмнө
parent
commit
bb7da17f06

+ 3 - 0
src/views/OcrFavoriteView.vue

@@ -451,6 +451,9 @@ async function handleFavoriteClick(row) {
     color: white;
     font-size: 12px;
     white-space: nowrap;
+    width: 45px;  /* 设置适合tron长度的固定宽度 */
+    text-align: center;  /* 文本居中对齐 */
+    display: inline-block;  /* 确保宽度生效 */
 }
 
 .detail-address {

+ 3 - 0
src/views/OcrView.vue

@@ -550,6 +550,9 @@ function scrollToSelected() {
     color: white;
     font-size: 12px;
     white-space: nowrap;
+    width: 45px;
+    text-align: center;
+    display: inline-block;
 }
 
 .detail-address {