YARN-9600. Support self-adaption width for columns of containers table on app attempt page. Contributed by Tao Yang.

This commit is contained in:
Weiwei Yang 2019-06-05 13:55:30 +08:00
parent ef2da40a70
commit 433e97cd34

View File

@ -155,7 +155,8 @@ public Collection<ContainerReport> run() throws Exception {
// Container Table // Container Table
TBODY<TABLE<Hamlet>> tbody = TBODY<TABLE<Hamlet>> tbody =
html.table("#containers").thead().tr().th(".id", "Container ID") html.table("#containers").$style("width:100%")
.thead().tr().th(".id", "Container ID")
.th(".node", "Node").th(".exitstatus", "Container Exit Status") .th(".node", "Node").th(".exitstatus", "Container Exit Status")
.th(".logs", "Logs").__().__().tbody(); .th(".logs", "Logs").__().__().tbody();