Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^4: Adding details with summary html tags

by LanX (Cardinal)
on May 23, 2020 at 20:28 UTC ( #11117180=note: print w/replies, xml ) Need Help??

in reply to Re^3: Adding details with summary html tags
in thread Adding details with summary html tags

> To be honest, I only very rarely want to hide content after I've revealed it

I'm afraid I wasn't clear enough. My idea is to shrink every long code section and to provide a toggle.

Values for max-length and min-shrink could be individually set by the reading user.

Another approach would be a limited div with scrollbars, I think github is using this.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^4: Adding details with summary html tags

Replies are listed 'Best First'.
Re^5: Adding details with summary html tags
by kcott (Bishop) on May 23, 2020 at 21:14 UTC

    Thanks for the clarification.

    As for the "shrink" idea, assuming those min/max values can be set by each user, I think that might be a good way to go.

    However, I'm not sold on the "scrollbars" idea. I have seen this on a number of sites (including GitHub) and I generally don't like it: the scrolling windows typically only allow a very limited number of lines and I feel like I've regressed to the 80x24 screens I had to use many decades ago (in many cases, there's far less than 24 lines in the scrolling window). If you're only talking about vertical scrolling, and the height of the scrolling window could be adjusted — in Settings, with CSS, or using some other mechanism — I might be more amenable to this suggestion. I strongly dislike having to scroll code (or data or whatever) in two directions: horizontal scrollbars would not get my support.

    I appreciate we're just kicking around ideas here. Any substantial discussion should be done in its own thread. I probably wrote too much about "scrollbars" for a "Re^5" post in a thread about introducing HTML5 elements.

    — Ken

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11117180]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2021-05-13 04:08 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (134 votes). Check out past polls.