damianavila / RISE

RISE: "Live" Reveal.js Jupyter/IPython Slideshow Extension
Other
3.68k stars 416 forks source link

Table cell's size does not adjust to content (example: code text) #192

Open j3mdamas opened 8 years ago

j3mdamas commented 8 years ago

Hi,

In presentation mode, the table cell's size is not adjusted when one uses text inside the cells. The same seems to be true for bold text.

damianavila commented 8 years ago

@j3mdamas can you link me an example I can work with? Thanks.

j3mdamas commented 8 years ago

Hi @damianavila,

Thanks for noticing this issue. You can download this notebook: https://github.com/Acellera/htmd/blob/master/tutorials/introd-atom-selections.ipynb

Slides 4, 6 and 7

damianavila commented 8 years ago

Thanks! I will take a look.

mbewley commented 7 years ago

I've found this tends to work well:

.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td { font-size: 100%; }

You then change the font size of rendered_html, and the table font size follows it. No idea if this is good practice, but it seems to work.

damianavila commented 7 years ago

I've found this tends to work well:

Thanks for the tip!

j3mdamas commented 6 years ago

hi @damianavila,

I'm revisiting some of these old issues, as I'm revising some old ipynbs for presentation mode.

I can't actually revise this issue, as now I have another one: the table appear in a micro-size. I'm using version 5.2.0. The only table on this notebook, for example. Is this something anyone else has been facing? How can customize the tables?

Thanks!

j3mdamas commented 6 years ago

The micro-size is only a problem on presentation mode, not on the normal view

damianavila commented 6 years ago

Will check as soon as I can, thanks @j3mdamas.

j3mdamas commented 6 years ago

thanks @damianavila

j3mdamas commented 6 years ago

Hi @damianavila,

I'm also having the same problems with the depiction of pandas DataFrame objects. I don't know if it's related.

damianavila commented 6 years ago

Still, I need to check this out, but thanks for the additional context.

stevecassidy commented 6 years ago

Just to add a ping to this request. I've just fixed this with the following custom CSS stylesheet:

.present table {
    font-size: 18pt;
}

This overrides the default font size of 12pt on tables which was giving the micro size in slides.