wzyyy 3 years ago
parent
commit
d40d7d3f39

+ 1 - 1
src/global.less

@@ -117,7 +117,7 @@ ol {
 }
 
 .ellipsis {
-  max-width: 100%;
+  width: 100%;
   overflow: hidden;
   white-space: nowrap;
   text-align: left;

+ 1 - 1
src/pages/device/Instance/Detail/Config/index.tsx

@@ -74,7 +74,7 @@ const Config = () => {
         return (
           <div>
             <Tooltip title={config[item.property] || '--'} placement="topLeft">
-              <div className="ellipsis" style={{ width: 300 }}>
+              <div className="ellipsis" style={{ maxWidth: 300 }}>
                 {config[item.property] || '--'}
               </div>
             </Tooltip>

+ 2 - 2
src/pages/device/Instance/Detail/Tags/index.tsx

@@ -46,8 +46,8 @@ const Tags = () => {
         {(tags || [])?.map((item: any) => (
           <Descriptions.Item span={1} label={`${item.name}(${item.key})`} key={item.key}>
             <Tooltip title={item.value || '--'} placement="topLeft">
-              <div className="ellipsis" style={{ width: 300 }}>
-                {item.value || '--'}{' '}
+              <div className="ellipsis" style={{ maxWidth: 300 }}>
+                {item.value || '--'}
               </div>
             </Tooltip>
           </Descriptions.Item>