From df9716ac28646d1dabe75c2944e9efe625ea426e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 08 十月 2024 10:53:39 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/MapPage.jsx |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx
index f334cc3..b632f62 100644
--- a/zy-acs-flow/src/map/MapPage.jsx
+++ b/zy-acs-flow/src/map/MapPage.jsx
@@ -35,25 +35,23 @@
     return (
         <Box
             sx={{
-                margin: '0 -8px', // 鎶垫秷鐖跺鍣ㄧ殑宸﹀彸鍐呰竟璺�
+                margin: '0 -8px',
                 height: '100%',
                 display: 'flex',
                 flexDirection: 'column',
             }}
         >
-            {/* 鑿滃崟鏍� */}
             <Box
                 sx={{
                     display: 'flex',
                     alignItems: 'center',
-                    backgroundColor: '#f5f5f5', // 娴呰壊鑳屾櫙
+                    backgroundColor: '#f5f5f5',
                     color: '#000',
                     padding: '0 16px',
-                    height: '64px', // 鍥哄畾楂樺害
-                    flexShrink: 0,
+                    height: '64px',
+                    flexShrink: 0, // keep height
                 }}
             >
-                {/* 宸︿晶鎼滅储妗� */}
                 <TextField
                     variant="outlined"
                     size="small"
@@ -64,9 +62,7 @@
                         borderRadius: 1,
                     }}
                 />
-                {/* 鍗犱綅绗︼紝鎺ㄥ姩鍙充晶鍐呭 */}
                 <Box sx={{ flexGrow: 1 }} />
-                {/* 妯″紡閫夋嫨涓嬫媺妗� */}
                 <Select
                     value={mode}
                     onChange={handleModeChange}
@@ -82,7 +78,6 @@
                     <MenuItem value="edit">缂栬緫妯″紡</MenuItem>
                     <MenuItem value="configuration">閰嶇疆妯″紡</MenuItem>
                 </Select>
-                {/* 鍔熻兘鎸夐挳 */}
                 <Button
                     variant="contained"
                     color="primary"
@@ -94,15 +89,13 @@
                     妯℃嫙AGV杩愯
                 </Button>
             </Box>
-            {/* 鍦板浘鍖哄煙 */}
             <Box
                 sx={{
-                    flexGrow: 1,
+                    flexGrow: 1,    // fill remaining of map space 
                     position: 'relative',
-                    backgroundColor: '#fff', // 鍦板浘鍖哄煙鑳屾櫙鑹�
+                    backgroundColor: '#fff',
                 }}
             >
-                {/* 鍦板浘鍗犱綅绗� */}
                 <Box
                     sx={{
                         width: '100%',
@@ -110,7 +103,6 @@
                         backgroundColor: '#e0e0e0',
                     }}
                 />
-                {/* Speed Dial缁勪欢 */}
                 <SpeedDial
                     ariaLabel="SpeedDial 绀轰緥"
                     sx={{ position: 'absolute', bottom: 16, right: 16 }}

--
Gitblit v1.9.1