Update data extensions modelling table to new designs#2582
Update data extensions modelling table to new designs#2582robertbrignull merged 8 commits intomainfrom
Conversation
|
I'm really struggling to get this to work at small screen widths. It ends up looking something like the following two screenshots. Some or all of the columns become misaligned and it's not pretty 😢 With a medium width screen so only one column is affected:
With a slightly smaller screen more columns become affected:
I think I understand roughly what's going on here, but sadly I don't know of a way to fix it. How is column width determined?The width of each column is controlled by the CSS This all works fine except when it tries to reduce the column size below the size of the column contents. In our case the "Argument[0]: String" text is too long to fit in the allocated space, and so it refuses to reduce the column width below this. This is all fine and well, but apparently the grid system then gets confused and reduces the overall width so it no longer covers 100% of the container. In the bad row in the screenshot the 1st column and the 2nd/4th/5th are still in their 40%/15% relationship, but they're widths are lower than they should be so they don't fill all the remaining space correctly. Can we use some other fancy
|
2fe4dd0 to
b6a685b
Compare
b6a685b to
903e8c6
Compare
| `; | ||
|
|
||
| type Props = { | ||
| value: string | undefined | false; |
There was a problem hiding this comment.
Including | false here is kinda nice because it means in MethodRow.tsx we can pass in showInputCell && modeledMethod?.input instead of having to do showInputCell ?modeledMethod?.input : undefined. But this isn't essential and I'm happy to change the type to just be string | undefined if that's preferable.
There was a problem hiding this comment.
Although, I just realised we can do this logic of hiding the value when the input is disabled in the Dropdown component. So ignore the previous comment. The type can be simpler and we can just ignore the value when the input is disabled.
shati-patel
left a comment
There was a problem hiding this comment.
Styling looks good! Thanks for digging in to the issues with the VS Code data grid.
(As mentioned offline, we can open an issue with the VS Code UI toolkit and potentially switch back to that if they fix the styling.)








Converts the data extensions table to match the new designs:

The changes are:
The bit I'm most unsure of is whether the whole "API or method" bit should be all one column or as separate columns. It depends on if we want the items to bunch together (like in the screenshot above), or if we want similar items to all align between rows. It's a little hard to tell from the designs since all of the dummy text is the same so stuff lines up regardless. @asiermartinez, what are your thoughts on whether items should align horizontally more or if the above screenshot looks good?
Checklist
ready-for-doc-reviewlabel there.