Skip to content

Commit b5ba20e

Browse files
author
979969786
committed
Trigger a double click on the span to show full job description.
1 parent 10ba188 commit b5ba20e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

core/src/main/resources/org/apache/spark/ui/static/additional-metrics.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,9 @@ $(function() {
5050
$("span.additional-metric-title").click(function() {
5151
$(this).parent().find('input[type="checkbox"]').trigger('click');
5252
});
53+
54+
// Trigger a double click on the span to show full job description.
55+
$(".description-input").dblclick(function() {
56+
$(this).removeClass("description-input").addClass("description-input-full");
57+
});
5358
});

core/src/main/resources/org/apache/spark/ui/static/webui.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ pre {
135135
display: block;
136136
}
137137

138+
.description-input-full {
139+
overflow: hidden;
140+
text-overflow: ellipsis;
141+
width: 100%;
142+
white-space: normal;
143+
display: block;
144+
}
145+
138146
.stacktrace-details {
139147
max-height: 300px;
140148
overflow-y: auto;

0 commit comments

Comments
 (0)