Commit 56491f4d by Apple\Apple

馃拝 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.
parent 3feed086
...@@ -116,7 +116,6 @@ const ModelPricing = () => { ...@@ -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 = () => { ...@@ -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 = () => { ...@@ -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 = () => { ...@@ -224,7 +221,6 @@ const ModelPricing = () => {
); );
return content; return content;
}, },
width: 200,
}, },
{ {
title: t('妯″瀷浠锋牸'), title: t('妯″瀷浠锋牸'),
...@@ -259,7 +255,6 @@ const ModelPricing = () => { ...@@ -259,7 +255,6 @@ const ModelPricing = () => {
} }
return content; return content;
}, },
width: 250,
}, },
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment