livebook-dev / livebook

Automate code & data workflows with interactive Elixir notebooks
https://livebook.dev
Apache License 2.0
4.87k stars 415 forks source link

Hidden cell count is visual noise #2690

Closed mmower closed 3 months ago

mmower commented 3 months ago

When a section is collapsed it displays a "X cells hidden" message.

In general this seems like visual noise to me and would be better displayed as a tooltip.

I realise this is a preference so maybe it could be configurable.

I looked for the ability to customise the stylesheet to maybe hide the div containing those messages but I am not sure if you can customise it or easily target only those specific div's.

jonatanklosko commented 3 months ago

I believe we show the message, to have a better indication that the there is some hidden content, otherwise the distinction between a collapsed and empty section is too subtle.

If you want to hide the message, you can use a browser extension that injects custom CSS rules, and you can do [data-el-section-subheadline-collapsed] { display: hidden; } :)

mmower commented 3 months ago

Is it on the roadmap to allow customisation of the stylesheet? I'd rather not have to install a browser extension for this one thing.

jonatanklosko commented 3 months ago

There is on plan for general stylesheet customization. I don't think a detail like this is worth its own configuration option. We can consider a design change if more users find the current one noisy :)