[dataquery] fixes oversized table head element - #11087
Conversation
…idth and max height values of table content
|
@adamdaudrich can you take a look at this since you created the issue? |
|
LGTM |
|
Ok, I'll do a code review in the coming days! |
HenriRabalais
left a comment
There was a problem hiding this comment.
hey @marandmart! took a proper look, mostly small stuff but I'd like to sort a few things before approving:
- the
stripHTMLis going intogetDictionaryDescription, which is used in 6 places (fielddisplay, welcome, viewdata, definefields), not just the table header. so this strips html from descriptions everywhere now… is that intentional, or should it be scoped to just the header in viewdata? I could see it being an improvement across the board but wanted to check! - for the
labeltype going tostring | ReactNode… does the label actually need to be a ReactNode? could we keep it astringand handle the header sizing on thethdirectly instead of wrapping the value in a<div>? and if it does need to change,ReactNodealready includesstring, so the union can just beReactNode. - the
<style>block is injected inline in the render, and there's no css file in the dataquery module yet. could we move it into a proper.cssfile and import it at the top? (the way Filter.tsx does with Filter.css) - the
min-width: 150pxis on boththandtd, so it widens every column, not just the header, which'll add horizontal scroll on wider result sets. was that intended?
nothing major, just want to make sure we're not stripping html or forcing column widths in more places than we mean to! let me know 🙂
|
Hi @HenriRabalais!
|
Brief summary of changes
Testing instructions
Link to related issue