d/@width for small screens

3 views
Skip to first unread message

Jeremy Sylvestre

unread,
Jan 8, 2026, 5:42:10 PM (5 days ago) Jan 8
to PreTeXt development
See


In this screenshot, the first dl has @width="medium" and the second has @width="wide".

You can see that the title of the item in the first dl is cramped into a restricted horizontal space because of the @width setting, but the title of the item in the second dl is nicely laid out on a single line.

I propose that dl/@width should be ignored for small screens, and instead default to "wide". The list item's content is vertically displaced from the title, so there doesn't seem to be a reason to restrict the width of the title in that layout.

Cheers,
Jeremy S

Oscar Levin

unread,
Jan 8, 2026, 5:45:13 PM (5 days ago) Jan 8
to prete...@googlegroups.com
This makes a lot of sense to me!  I likely won't have time to make this change soon though, so perhaps an issue or PR would be best at this point.

Oscar.

--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/CALMYOnd0a7w9Q134g3gAS%2B1arzvHS5tZZb%2B%3DeT8b2tD6hpAsFg%40mail.gmail.com.

Rob Beezer

unread,
Jan 8, 2026, 6:08:21 PM (5 days ago) Jan 8
to prete...@googlegroups.com
Yes, I think it is right to regard @width in this context as a "hint".

So in a special situation like a very small screen, we can take matters into our
own hands.

@Jeremy - if you want to make a PR we can probably get it in quite quickly.

Rob

On 1/8/26 14:41, Jeremy Sylvestre wrote:
> See
>
> https://sites.ualberta.ca/~jsylvest/pretext-dev/dl-small-screen.png <https://
> sites.ualberta.ca/~jsylvest/pretext-dev/dl-small-screen.png>
>
> In this screenshot, the first dl has @width="medium" and the second has
> @width="wide".
>
> You can see that the title of the item in the first dl is cramped into a
> restricted horizontal space because of the @width setting, but the title of the
> item in the second dl is nicely laid out on a single line.
>
> I propose that dl/@width should be ignored for small screens, and instead
> default to "wide". The list item's content is vertically displaced from the
> title, so there doesn't seem to be a reason to restrict the width of the title
> in that layout.
>
> Cheers,
> Jeremy S
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com <mailto:pretext-
> dev+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/
> CALMYOnd0a7w9Q134g3gAS%2B1arzvHS5tZZb%2B%3DeT8b2tD6hpAsFg%40mail.gmail.com
> <https://groups.google.com/d/msgid/pretext-dev/
> CALMYOnd0a7w9Q134g3gAS%2B1arzvHS5tZZb%2B%3DeT8b2tD6hpAsFg%40mail.gmail.com?
> utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages