Преглед изворни кода

💅 feat(ui): Remove fixed width constraints from model pricing table

This commit removes all fixed width constraints from the model pricing table columns, allowing them to naturally expand and adjust based on content. This improves the table's responsiveness and ensures better space utilization across different screen sizes.
Apple\Apple пре 7 месеци
родитељ
комит
f9ddec3b1c
1 измењених фајлова са 0 додато и 5 уклоњено
  1. 0 5
      web/src/components/table/ModelPricing.js

+ 0 - 5
web/src/components/table/ModelPricing.js

@@ -116,7 +116,6 @@ const ModelPricing = () => {
         return Number(aAvailable) - Number(bAvailable);
         return Number(aAvailable) - Number(bAvailable);
       },
       },
       defaultSortOrder: 'descend',
       defaultSortOrder: 'descend',
-      width: 100,
     },
     },
     {
     {
       title: t('模型名称'),
       title: t('模型名称'),
@@ -138,7 +137,6 @@ const ModelPricing = () => {
       onFilter: (value, record) =>
       onFilter: (value, record) =>
         record.model_name.toLowerCase().includes(value.toLowerCase()),
         record.model_name.toLowerCase().includes(value.toLowerCase()),
       filteredValue,
       filteredValue,
-      width: 200,
     },
     },
     {
     {
       title: t('计费类型'),
       title: t('计费类型'),
@@ -147,7 +145,6 @@ const ModelPricing = () => {
         return renderQuotaType(parseInt(text));
         return renderQuotaType(parseInt(text));
       },
       },
       sorter: (a, b) => a.quota_type - b.quota_type,
       sorter: (a, b) => a.quota_type - b.quota_type,
-      width: 120,
     },
     },
     {
     {
       title: t('可用分组'),
       title: t('可用分组'),
@@ -224,7 +221,6 @@ const ModelPricing = () => {
         );
         );
         return content;
         return content;
       },
       },
-      width: 200,
     },
     },
     {
     {
       title: t('模型价格'),
       title: t('模型价格'),
@@ -259,7 +255,6 @@ const ModelPricing = () => {
         }
         }
         return content;
         return content;
       },
       },
-      width: 250,
     },
     },
   ];
   ];