From 7c8596823a7dff5c05e5f61ff19e4b5179d38815 Mon Sep 17 00:00:00 2001 From: Kousuke Saruta Date: Mon, 23 Sep 2019 23:57:08 -0700 Subject: [PATCH] [SPARK-29218][WEBUI] Increase `Show Additional Metrics` checkbox width in StagePage ### What changes were proposed in this pull request? Modified widths of some checkboxes in StagePage. ### Why are the changes needed? When we increase the font size of the browsers or the default font size is big, the labels of checkbox of `Show Additional Metrics` in `StagePage` are wrapped like as follows. ![before-modified1](https://user-images.githubusercontent.com/4736016/65449180-634c5e80-de75-11e9-9f27-88f4cc1313b7.png) ![before-modified2](https://user-images.githubusercontent.com/4736016/65449182-63e4f500-de75-11e9-96b8-46e92a61f40c.png) ### Does this PR introduce any user-facing change? Yes. ### How was this patch tested? Run the following and visit the `Stage Detail` page. Then, increase the font size. ``` $ bin/spark-shell ... scala> spark.range(100000).groupBy("id").count.collect ``` Closes #25905 from sarutak/adjust-checkbox-width. Authored-by: Kousuke Saruta Signed-off-by: Dongjoon Hyun --- .../org/apache/spark/ui/static/stagepage.js | 2 +- .../org/apache/spark/ui/static/webui.css | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/core/src/main/resources/org/apache/spark/ui/static/stagepage.js b/core/src/main/resources/org/apache/spark/ui/static/stagepage.js index 3ef1a76fd7202..b28c981da20a5 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/stagepage.js +++ b/core/src/main/resources/org/apache/spark/ui/static/stagepage.js @@ -286,7 +286,7 @@ $(document).ready(function () { " Show Additional Metrics" + "" + "