diff --git a/static/style.css b/static/style.css index 4a5a14d..d99990f 100644 --- a/static/style.css +++ b/static/style.css @@ -167,6 +167,12 @@ body { gap: 15px; } +.key-info-grid { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 12px; +} + .data-item { background: white; padding: 20px; diff --git a/templates/result.html b/templates/result.html index 4fa2724..3334766 100644 --- a/templates/result.html +++ b/templates/result.html @@ -329,37 +329,39 @@ const geoChars = cavityKeyInfo.geometric_characteristics || {}; return ` -
-
收缩率
-
${metadata.shrinkage_rate !== undefined ? metadata.shrinkage_rate : 'N/A'}
-
-
-
拔模角
-
${metadata.draft_angle !== undefined ? metadata.draft_angle + '°' : 'N/A'}
-
-
-
分型线长度
-
${manufacturingInfo.parting_line_length || 'N/A'}
-
-
-
产品体积
-
${geoChars.product_volume || 'N/A'}
-
-
-
产品重量
-
${geoChars.product_weight || 'N/A'}
-
-
-
壁厚范围
-
${geoChars.wall_thickness_range || 'N/A'}
-
-
-
型腔材料
-
${manufacturingInfo.mold_material || 'N/A'}
-
-
-
预估周期
-
${manufacturingInfo.estimated_cycle_time || 'N/A'}
+
+
+
收缩率
+
${metadata.shrinkage_rate !== undefined ? metadata.shrinkage_rate : 'N/A'}
+
+
+
拔模角
+
${metadata.draft_angle !== undefined ? metadata.draft_angle + '°' : 'N/A'}
+
+
+
分型线长度
+
${manufacturingInfo.parting_line_length || 'N/A'}
+
+
+
产品体积
+
${geoChars.product_volume || 'N/A'}
+
+
+
产品重量
+
${geoChars.product_weight || 'N/A'}
+
+
+
壁厚范围
+
${geoChars.wall_thickness_range || 'N/A'}
+
+
+
型腔材料
+
${manufacturingInfo.mold_material || 'N/A'}
+
+
+
预估周期
+
${manufacturingInfo.estimated_cycle_time || 'N/A'}
+
`; } diff --git a/templates/snapshot.html b/templates/snapshot.html index 5e61ebe..1329fc6 100644 --- a/templates/snapshot.html +++ b/templates/snapshot.html @@ -343,37 +343,39 @@ const geoChars = cavityKeyInfo.geometric_characteristics || {}; return ` -
-
收缩率
-
${metadata.shrinkage_rate !== undefined ? metadata.shrinkage_rate : 'N/A'}
-
-
-
拔模角
-
${metadata.draft_angle !== undefined ? metadata.draft_angle + '°' : 'N/A'}
-
-
-
分型线长度
-
${manufacturingInfo.parting_line_length || 'N/A'}
-
-
-
产品体积
-
${geoChars.product_volume || 'N/A'}
-
-
-
产品重量
-
${geoChars.product_weight || 'N/A'}
-
-
-
壁厚范围
-
${geoChars.wall_thickness_range || 'N/A'}
-
-
-
型腔材料
-
${manufacturingInfo.mold_material || 'N/A'}
-
-
-
预估周期
-
${manufacturingInfo.estimated_cycle_time || 'N/A'}
+
+
+
收缩率
+
${metadata.shrinkage_rate !== undefined ? metadata.shrinkage_rate : 'N/A'}
+
+
+
拔模角
+
${metadata.draft_angle !== undefined ? metadata.draft_angle + '°' : 'N/A'}
+
+
+
分型线长度
+
${manufacturingInfo.parting_line_length || 'N/A'}
+
+
+
产品体积
+
${geoChars.product_volume || 'N/A'}
+
+
+
产品重量
+
${geoChars.product_weight || 'N/A'}
+
+
+
壁厚范围
+
${geoChars.wall_thickness_range || 'N/A'}
+
+
+
型腔材料
+
${manufacturingInfo.mold_material || 'N/A'}
+
+
+
预估周期
+
${manufacturingInfo.estimated_cycle_time || 'N/A'}
+
`; }