Prechádzať zdrojové kódy

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

- 设置 tron 地址的固定宽度为45px
- 文本居中对齐
- 确保宽度生效,使用 inline-block显示方式
wui 9 mesiacov pred
rodič
commit
bb7da17f06
2 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 3 0
      src/views/OcrFavoriteView.vue
  2. 3 0
      src/views/OcrView.vue

+ 3 - 0
src/views/OcrFavoriteView.vue

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

+ 3 - 0
src/views/OcrView.vue

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