You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've did some local modifications which resulted in a visually more appealing output:
Actual behaviour
I have some devices with longer hostnames defined. I see that those hostnames get wrapped to fit the column width of the table.
Expected behaviour
I would expect the hostnames not to wrap as there is enough space available, although currently reserved for the mac- and ip-address.
When looking at the rendering code and output Html i notice that two tables are used for rendering. Using a seperate table for rendering the table-header is not neccessary and makes it hard to get the table styling to adjust to the actual displayed device information (hostname, mac, ip).
I'd agree that having one table for the headers and one for content, just to force a <hr/> between them is not how tables should be done -- see the current DOM:
Is there an existing issue for this?
screenshots or captures
I've did some local modifications which resulted in a visually more appealing output:
Actual behaviour
I have some devices with longer hostnames defined. I see that those hostnames get wrapped to fit the column width of the table.
Expected behaviour
I would expect the hostnames not to wrap as there is enough space available, although currently reserved for the mac- and ip-address.
When looking at the rendering code and output Html i notice that two tables are used for rendering. Using a seperate table for rendering the table-header is not neccessary and makes it hard to get the table styling to adjust to the actual displayed device information (hostname, mac, ip).
https://github.com/openwrt/luci/blob/e23f6069d6fb91d75147f908bd15d2ee96e6a5d7/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/20_lan.js#L26C3-L36C87
My suggestion is to modify this code into:
The above situation should allow to do styling:
Steps to reproduce
Provide a long hostname for a device
Additional Information
What browsers do you see the problem on?
Firefox, Chrome, Safari, Microsoft Edge
Relevant log output
The text was updated successfully, but these errors were encountered: