On 11/29/25 8:11 AM, Gavin Smith wrote:
On Thu, Nov 27, 2025 at 10:42:49AM -0800, Per Bothner wrote:
On 11/27/25 09:53, Raymond Toy wrote:
I think it would be nice if the Next, Previous, and Up entries were on separate
lines, with the Contents/Index on a separate line (as it is now). Something like
|Next: Step-by-Step Alien Example, Previous: Loading Unix Object Files, Up:
Alien Objects [Contents][Index] |
I don't know how to specify CSS to break lines up this way. If there isn't,
could texinfo put the nav panel in a grid for flexbox or something so that I
can add CSS to make it flow neatly for small screens? Even allowing CSS to add
a style to the Next, Previous, and Up labels would help a bit.
We could try somethink like:
<p>
<span style="white-space: nowrap">Next: Step-by-Step Alien Example</span>
<span style="white-space: nowrap">Previous: Loading Unix Object Files</span>
<span style="white-space: nowrap">Up: Alien Objects</span>
</p>
The downside is truncation for really short windows with long text, but I think
that is tolerable in this context.
It's only tolerable if the section names are short enough to fit in the width
of the screen, otherwise the reader of the manual is impaired. They can't
read the name of the referenced section without scrolling. Moreover, the
width of the rendered page is increased. We exchange a minor improvement
in most cases for a much rarer, more severe problem. See attached screenshots.
It could be a two-column table so the section title could be wrapped. Or
probably a grid or flexbox so if everything fits on one line it's one
line. But I'm a terrible web dev.
Adding a <span> around the the links with an appropriate class makes sense
(Patrice used "nav-button"), but I don't think we should set the "nowrap"
style by default. It should be up to users of texi2any to add that style
if they want to.
Yes, please make it customizable in some way. I don't think one size
fits all in this case.
​