From f9ddec3b1cd9085539589a6b426c8e733decef89 Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Wed, 4 Jun 2025 13:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=85=20feat(ui):=20Remove=20fixed=20wid?= =?UTF-8?q?th=20constraints=20from=20model=20pricing=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- web/src/components/table/ModelPricing.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/web/src/components/table/ModelPricing.js b/web/src/components/table/ModelPricing.js index 22738127..d3d4459d 100644 --- a/web/src/components/table/ModelPricing.js +++ b/web/src/components/table/ModelPricing.js @@ -116,7 +116,6 @@ const ModelPricing = () => { return Number(aAvailable) - Number(bAvailable); }, defaultSortOrder: 'descend', - width: 100, }, { title: t('模型名称'), @@ -138,7 +137,6 @@ const ModelPricing = () => { onFilter: (value, record) => record.model_name.toLowerCase().includes(value.toLowerCase()), filteredValue, - width: 200, }, { title: t('计费类型'), @@ -147,7 +145,6 @@ const ModelPricing = () => { return renderQuotaType(parseInt(text)); }, sorter: (a, b) => a.quota_type - b.quota_type, - width: 120, }, { title: t('可用分组'), @@ -224,7 +221,6 @@ const ModelPricing = () => { ); return content; }, - width: 200, }, { title: t('模型价格'), @@ -259,7 +255,6 @@ const ModelPricing = () => { } return content; }, - width: 250, }, ];