elm-time-travel icon indicating copy to clipboard operation
elm-time-travel copied to clipboard

No scroller and button to clear previous messages

Open reactivetype opened this issue 9 years ago • 5 comments

First, thanks for this module. It is very useful alternative to Debug. I just wish there is a way to scroll the messages. The old ones seem to disappear off page. And it's nice to have a button to clear all messages. Thanks!

reactivetype avatar Jun 29 '16 14:06 reactivetype

Thanks for your feedback :)

Have you tried filtering messages? The shown messages are currently limited up to 60, but I think this is enough if you filtered out frequent messages like MouseMove, Tick, etc. I will also add ability to save those settings as soon as official localStorage comes.

For now, inserting this would work fine.

<style>
body > div > div > div > div:nth-child(2) {
  max-height: calc(100% - 87px);
  overflow-y: scroll;   
}
</style>

Second one sounds good to me. I sometimes face a problem like "Many messages passed through, but which is the first one after I pressed the button?". I'll improve this soon!

jinjor avatar Jun 29 '16 15:06 jinjor

Oops, this code does not solve the problem. The upper limit is still 60 if this style is added. (60 comes from my performance concern, not measured though.)

jinjor avatar Jun 29 '16 16:06 jinjor

Hey jinjor. I'd also like to thank you. This is so much better than using Debug.log

I don't mean to hijack this issue but I think this is related. In regards to the scrolling, have you considered adding the ability to scroll sideways in the panels? I changed the overflow: hidden to overflow: scroll in dev tools in order to get the effect I desire.

Example of problem:

screen shot 2016-07-03 at 11 07 41 am

Notice the errorMessage property on the cart is a string and the string continues off the panel. It would be nice if I could scroll right in that panel. Or, alternatively, if that text dropped down to the next line.

zachwilliamson91 avatar Jul 03 '16 16:07 zachwilliamson91

Hi @pinksalmon, thanks for your feedback.

Yeah, I'm aware of it. Probably it will be fixed in next version :)

jinjor avatar Jul 06 '16 15:07 jinjor

I added "title" attribute for each long string value at 1.0.13, and a scrollbar at "Model" panel at 1.0.14.

jinjor avatar Jul 15 '16 14:07 jinjor