Univention Bugzilla – Bug 44431
UMC DNS: Zone entry in grid looks broken after adding a TXT record or forward zone
Last modified: 2017-07-26 14:39:33 CEST
Created attachment 8792 [details]
Screenshot of DNS module
I added a TXT record at the Forward Zone and afterwards the entry of this forward zone in the grid is not displayed completely (see screenshot).
It looks like the height is doubled (because of the additional entry), but only the original height is displayed.
udm dns/forward_zone modify \
--dn zoneName="$(ucr get domainname)",cn=dns,"$(ucr get ldap/base)" \
--set txt="kdiscover https://webapp.intranet.example.org/"
Created attachment 8793 [details]
Screenshot of DNS module with reversed sorting
If I reverse the sorting, it gets even worse (see screenshot).
I tested with Firefox 53.0 and Google Chrome 58.0
*** Bug 44651 has been marked as a duplicate of this bug. ***
*** Bug 44746 has been marked as a duplicate of this bug. ***
I didn't expected two dimensional arrays as values. Rows with varying height don't look very good. We should try and limit all data to one line.
Maybe we can show additional information as a popup instead?
(In reply to Jürn Brodersen from comment #4)
> I didn't expected two dimensional arrays as values. Rows with varying height
> don't look very good. We should try and limit all data to one line.
> Maybe we can show additional information as a popup instead?
I don't think so. Multi rows should also be supported. What if third party UMC modules have them? This shouldn't be fixed with a workaround.
Also the information have been added on purpose to improve the whole usability of the DNS/DHCP modules.
As discussed, please put these values into a <div> or <span> container with the following CSS properties:
line-height: 1.25; display: block; text-overflow: ellipsis;
You need to modify height to "auto" and min-height to "48px" in .umc .umcGrid .dgrid .dgrid-row.
I was able to use the already existing cell div from the grid. That way only the css needed some changes.
r81325: fix multiline entries in grid
Forgot to test IE... The ellipsis don't work in IE, sorry
(In reply to Jürn Brodersen from comment #9)
> Forgot to test IE... The ellipsis don't work in IE, sorry
This was broken in firefox, too.
I fixed it by adding a height to ".dgrid-row-table" that removed the need for line-height because now vertical-allign works (the tables height was set indirectly through line-height).
Note1: height for tables is interpreted as min-height (https://www.w3.org/TR/CSS21/tables.html#height-layout)
Note2: In IE no ellipses are shown after the first <br> (https://stackoverflow.com/questions/31022769/text-overflowellipsis-does-not-work-with-br-in-ie)
r81339: fix ellipses in grid
Okay, this looks very nice now!
I also had a look at UVMM and various UCS@school modules.
OK: YAML (adjusted in r81371)