Bladeren bron

Fix scroll show in field of type properties table

Horizontal scroll appears in Wizard Options when showing field of type
'Properties Table', like the 'Execute Now Options' field.

Also, includes ability to attach the vscode debugger to an already
running Chrome process.
Sergiu Miclea 6 jaren geleden
bovenliggende
commit
05e4cdee04
2 gewijzigde bestanden met toevoegingen van 10 en 1 verwijderingen
  1. 9 0
      .vscode/launch.json
  2. 1 1
      src/components/molecules/PropertiesTable/PropertiesTable.tsx

+ 9 - 0
.vscode/launch.json

@@ -10,6 +10,15 @@
       "name": "Launch Chrome against localhost",
       "url": "http://localhost:3001",
       "webRoot": "${workspaceFolder}"
+    },
+    // Launch Chrome like this: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
+    {
+      "type": "chrome",
+      "request": "attach",
+      "name": "Attach to Chrome",
+      "port": 9222,
+      "urlFilter": "http://localhost:3001/*",
+      "webRoot": "${workspaceFolder}"
     }
   ]
 }

+ 1 - 1
src/components/molecules/PropertiesTable/PropertiesTable.tsx

@@ -28,7 +28,7 @@ import { Field, EnumItem, isEnumSeparator } from '../../../@types/Field'
 
 const Wrapper = styled.div<any>`
   display: flex;
-  ${props => (props.width ? `width: ${props.width}px;` : '')}
+  ${props => (props.width ? `width: ${props.width - 2}px;` : '')}
   flex-direction: column;
   border: 1px solid ${Palette.grayscale[2]};
   border-radius: ${StyleProps.borderRadius};