فهرست منبع

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

Weiwei Yang 6 سال پیش
والد
کامیت
433e97cd34

+ 2 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppAttemptBlock.java

@@ -155,7 +155,8 @@ public class AppAttemptBlock extends HtmlBlock {
 
     // Container Table
     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(".logs", "Logs").__().__().tbody();