فهرست منبع

fix: adjust layout for TrafficTrend and ModelDistribution components

- Updated the layout of the TrafficTrend component to set a fixed height of 200px for better visual consistency.
- Modified the ModelDistribution component to set a fixed height of 140px, ensuring proper alignment and display of the pie chart.
ding113 2 ماه پیش
والد
کامیت
c1a05acf20
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/app/[locale]/internal/dashboard/big-screen/page.tsx

+ 2 - 2
src/app/[locale]/internal/dashboard/big-screen/page.tsx

@@ -569,7 +569,7 @@ const TrafficTrend = ({
         <Activity size={12} className="text-orange-400" />
         {t("sections.requestTrend")}
       </div>
-      <div className="flex-1 min-h-0">
+      <div className="h-[200px]">
         <ResponsiveContainer width="100%" height="100%">
           <AreaChart data={filteredData} margin={{ top: 5, right: 10, left: -20, bottom: 5 }}>
             <defs>
@@ -660,7 +660,7 @@ const ModelDistribution = ({
         <PieIcon size={12} className="text-indigo-400" />
         {t("sections.modelDist")}
       </div>
-      <div className="flex-1 min-h-0 flex items-center">
+      <div className="h-[140px] flex items-center">
         <ResponsiveContainer width="100%" height="100%">
           <PieChart>
             <Pie