Skip to contentSkip to conversation

support/scripts/pkg-stats: adjust column widths

PATCH Sen Hastings 2 participants 2 messages Aug 2, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 12 lines · Thomas Petazzoni
Quoted 8 lines · On Thu, 28 Jul 2022 18:23:56 -0500 Sen Hastings <[email protected]> wrote:

This adjusts the column widths, mostly for asthetics/legibility.

It is primarily for chrome based browsers, which like to linebreak on explicit hyphens, meaning every CVE takes multiple lines.

see: https://github.com/w3c/csswg-drafts/issues/3434

Quoted 8 lines

This doesn't behave extremely well here as it prevents wrapping of the package .mk file path in the first column, making this first column larger than it was. I guess wrapping on "/" would be ideally for this first column.

Here the table continues to exceed the width of my large browser window (with or without this patch), which is not very nice :-/

Yeah, I noticed that even with the older sortable based versions of pkg-stats.html. It appears to be caused by the extremely long formatted string binding WFN for ssdp-responder:

"cpe:2.3:a:simple_service_discovery_protocol_responder_project:simple_service_discovery_protocol_responder:1.8:*:*:*:*:*:*:*"

In order to get that cell narrower we would need to either do line wrapping or horizontal scrolling. As an example for line wrapping, the <wbr> element could be inserted between vendor and product.

something like:
<code>cpe:2.3:part:vendor<wbr>product:version:update:edition:language:sw_edition:target_sw:target_hw:other</code>

The good news is that this does not actually introduce any new characters (newline or otherwise) into the rendered text.

Any thoughts?

Sen H.

Quoted 1 line

Thomas

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 10 lines · On Tue, 2 Aug 2022 14:47:08 -0500 Sen Hastings <[email protected]> wrote:

Yeah, I noticed that even with the older sortable based versions of pkg-stats.html. It appears to be caused by the extremely long formatted string binding WFN for ssdp-responder:

"cpe:2.3:a:simple_service_discovery_protocol_responder_project:simple_service_discovery_protocol_responder:1.8:*:*:*:*:*:*:*"

In order to get that cell narrower we would need to either do line wrapping or horizontal scrolling. As an example for line wrapping, the <wbr> element could be inserted between vendor and product.

Quoted 5 lines

something like:
<code>cpe:2.3:part:vendor<wbr>product:version:update:edition:language:sw_edition:target_sw:target_hw:other</code>

The good news is that this does not actually introduce any new characters (newline or otherwise) into the rendered text.

Wow, I didn't know about <wbr>. Seems like the right thing to do, indeed!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot