Closed wouterbeek closed 7 years ago
Now I see the screenshot I'm a bit confused. It seems the WKT string is already split accros lines. But if I understand your problem description, its exactly the splitting accros lines (combined with vertical center alignment) thats a problem here.
Would you expect top-vertical-alginment here? (that wouldnt look that great btw if there are less lengthy results)
Well, perhaps an option to trigger top-vertical-alginment? Would help with some of my queries, too.
@jneubert Thanks for the suggestion.
The vertical-align
CSS property "specifies the vertical alignment of an inline or table-cell box" (MDN).
The value top
means: "Align the top of the element and its descendants with the top of the entire line" (MDN).
I've decided to fix this in a different way. The problem was that it was difficult to distinguish between rows, so I added a different row bg color for even/uneven rows
This use case comes up very regularly in geodata, where lengthy WKT strings abound: when scrolling throw the result set rows it seems as if a literal contains two WKT strings (see screenshot). Actually, the second WKT string belongs to the next row (currently out of view).
@LaurensRietveld mentioned CSS-based newlines as a good solution for this: copy/pasting the content would still work (because of the neat separation between DOM/content and display/CSS).