Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
Wrap the message content in a pre-scrollable to make sure it doesn't …
Browse files Browse the repository at this point in the history
…obliterate the screen real estate
  • Loading branch information
R. Tyler Croy committed Nov 25, 2014
1 parent f5b619f commit 5b15740
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
apply plugin: 'groovy'
////////////////////////////////////////////////////////////////////////////////


version = '0.1.0'
group = 'offtopic'
description =' Offtopic is a simple web application built with Ratpack for inspecting and consuming events from Kafka.'
sourceCompatibility = '1.7'
Expand Down
3 changes: 3 additions & 0 deletions src/ratpack/public/css/offtopic.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ body {
margin-left: 3px;
margin-right: 3px;
}

.message-raw {
}
3 changes: 2 additions & 1 deletion src/ratpack/public/js/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function watchTopic(name) {
var el_id = Math.floor(Math.random() * 1000000);
var el = ["<div id='" + el_id + "' class='list-group-item'>",
"<code>" + data.topic + "</code>",
data.raw + "<br/><div id='" + el_id + "_b64'",
'<pre class="pre-scrollable message-raw">' + data.raw + '</pre>',
"<br/><div class='message-b64' id='" + el_id + "_b64'",
"style='display:none;'><pre>" + data.b64 + "</pre></div>"].join("\n");
messages.prepend(el);
$("#" + el_id).click(function(ev) {
Expand Down

0 comments on commit 5b15740

Please sign in to comment.