Skip to content

Commit 4a5cb75

Browse files
authored
[Issue-83] Add overflow scroll (#84)
1 parent f85c8e3 commit 4a5cb75

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
- [Issue#72](https://github.com/SourceLabOrg/kafka-webview/issues/72) Bugfix User role input not displayed when creating new user.
88
- [Issue#81](https://github.com/SourceLabOrg/kafka-webview/issues/81) Bugfix Handle NoClassDefFoundError exceptions gracefully.
99
- [Issue#74](https://github.com/SourceLabOrg/kafka-webview/issues/74) Improvement UI Tweak to display large number of partitions in datatable views.
10-
- [Issue#71](https://github.com/SourceLabOrg/kafka-webview/issues/71) Improvement Topics sorted in select boxes.
10+
- [Issue#71](https://github.com/SourceLabOrg/kafka-webview/issues/71) Improvement Topics sorted in select boxes.
11+
- [Issue#83](https://github.com/SourceLabOrg/kafka-webview/issues/83) Improvement Wrap key and message values in <pre></pre> tags.
1112

1213
## 1.0.4 (06/11/2018)
1314
- Update NPM dependencies for [CVE-2017-18214](https://nvd.nist.gov/vuln/detail/CVE-2017-18214).

kafka-webview-ui/src/main/frontend/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8814,3 +8814,7 @@ hr.transparent {
88148814
top: 0;
88158815
width: 20px;
88168816
height: 20px; }
8817+
8818+
.overflow-scroll {
8819+
overflow: scroll;
8820+
}

kafka-webview-ui/src/main/resources/templates/stream/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</a>
2727
</div>
2828
</div>
29-
<div class="card-body">
29+
<div class="card-body overflow-scroll">
3030

3131
<!-- Stream Controls -->
3232
<div class="row">
@@ -320,8 +320,8 @@ <h4 class="alert-heading">Stream Disconnected</h4>
320320
<span class="timestamp" title="{{date}}">{{timestamp}}</span>
321321
{{/if}}
322322
</td>
323-
<td>{{key}}</td>
324-
<td>{{value}}</td>
323+
<td><pre>{{key}}</pre></td>
324+
<td><pre>{{value}}</pre></td>
325325
</tr>
326326
</script>
327327
</section>

kafka-webview-ui/src/main/resources/templates/view/consume.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
</a>
301301
</div>
302302
</div>
303-
<div class="card-body">
303+
<div class="card-body overflow-scroll">
304304

305305
<!-- Display Loader First -->
306306
<div class="alert alert-light" role="alert" id="loader" style="display: block;">
@@ -393,8 +393,8 @@ <h4 class="alert-heading">No Results Found</h4>
393393
<span class="timestamp" title="{{date}}">{{timestamp}}</span>
394394
{{/if}}
395395
</td>
396-
<td>{{key}}</td>
397-
<td>{{value}}</td>
396+
<td><pre>{{key}}</pre></td>
397+
<td><pre>{{value}}</pre></td>
398398
</tr>
399399
</script>
400400
</div>

0 commit comments

Comments
 (0)