Browse Source

修复3D详情面板

pm 3 months ago
parent
commit
73b39b7de3

+ 3 - 4
src/components/lockCabinet/LockCabinet3D.css

@@ -2,12 +2,12 @@
    为避免全局污染,统一加了 lc3d 前缀命名空间。 */
 
 .lc3dRoot {
-  --scene-width: 800px;
+  --scene-width: 1000px;
   --scene-height: 1100px;
 
-  --cabinet-width: 480px;
+  --cabinet-width: 600px;
   --cabinet-height: 900px;
-  --cabinet-depth: 200px;
+  --cabinet-depth: 300px;
 }
 
 *,
@@ -753,4 +753,3 @@
   border-radius: 9999px;
   backdrop-filter: blur(10px);
 }
-

+ 1 - 1
src/components/lockCabinet/MapData.tsx

@@ -437,7 +437,7 @@ export default function MapData({ cabinetId }: MapDataProps) {
       </div>
 
       {/* 右侧:详情信息 */}
-      <div className="w-[420px] h-full min-h-0 bg-white rounded-lg shadow-sm p-5 overflow-hidden flex flex-col">
+      <div className="w-[620px] h-full min-h-0 bg-white rounded-lg shadow-sm p-5 overflow-hidden flex flex-col" style={{width: '400px'}}>
         {/* 顶部信息(固定不滚动) */}
         <div className="shrink-0">
           {/* 标题 */}