lukashornych / evitalab

Official web-based GUI client for evitaDB e-commerce database. It is built to help developers who use evitaDB with exploring and debugging their domain structure and data. Besides standard query executing, it also supports multiple no-code tools to quickly navigate through domain structure, docs and data without needing to write any queries.
https://github.com/lukashornych/evitalab
Apache License 2.0
7 stars 1 forks source link

Basic styling for rendering HTML content in grid #63

Open lukashornych opened 8 months ago

lukashornych commented 8 months ago

We already have basic CSS styling in place for HTML rendered from Markdown texts. Now we also support rendering user HTML directly inside the grid property previewer.

Would it be possible to apply some basic styling for this as well? Unlike in the case of MD, there may be custom HTML tags and stylings but usually we render only partial HTML documents (like product descriptions) where the CSS is referencing stylesheet in the e-commerce system. That's why some basic styling like padding/margin and some positioning could help with readablity even more than we have now.

We could also explore rendering the user HTML inside iframe so that the user HTML couldn't interfere with evitaLab's HTML, but don't know if it's possible with local HTML. Also, the user HTML can be entire HTML document, not just part of body which could be problem with our current solution.

image