Parcourir la source

fix(SocketList): adjust columns settings #1377

0xJacky il y a 4 mois
Parent
commit
35d6469c69
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      app/src/views/upstream/SocketList.vue

+ 2 - 3
app/src/views/upstream/SocketList.vue

@@ -19,7 +19,6 @@ const columns: ColumnsType<SocketInfo> = [
     dataIndex: 'socket',
     dataIndex: 'socket',
     key: 'socket',
     key: 'socket',
     width: 200,
     width: 200,
-    fixed: 'left',
   },
   },
   {
   {
     title: () => $gettext('Upstream'),
     title: () => $gettext('Upstream'),
@@ -60,7 +59,7 @@ const columns: ColumnsType<SocketInfo> = [
   {
   {
     title: () => $gettext('Health Check'),
     title: () => $gettext('Health Check'),
     key: 'enabled',
     key: 'enabled',
-    width: 150,
+    width: 50,
     fixed: 'right',
     fixed: 'right',
   },
   },
 ]
 ]
@@ -147,7 +146,7 @@ onUnmounted(() => {
       :pagination="{
       :pagination="{
         pageSize: 20,
         pageSize: 20,
         showSizeChanger: true,
         showSizeChanger: true,
-        showTotal: (total: number) => `Total ${total} items`,
+        showTotal: (total: number) => $gettext('Total %{total} items', { total: total.toLocaleString() }),
       }"
       }"
       :scroll="{ x: 1400 }"
       :scroll="{ x: 1400 }"
       row-key="socket"
       row-key="socket"