plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
420 stars 74 forks source link

Links in cell change table layout. #914

Closed audetto closed 3 years ago

audetto commented 3 years ago

Using dash-table 4.11.2

I have followed the advice on forum and here https://github.com/plotly/dash-table/issues/222

to use markdown to create links in cells.

Problem is that the whole table changes layout when a column is market as markdown. In particular each link is surrounded by <p> which causes rows to take more vertical space.

Is there a way to avoid this side effect?

AnnMarieW commented 3 years ago

Hi @audetto

You can change the margin on the <p> element by using the table's css prop. For example: css=[dict(selector='p', rule='margin: 0px;')],

Or you can include a css file in the app’s /assets folder. See more info on that here.

audetto commented 3 years ago

Yes, this is good, and more localised. Thank you.