Handle large transaction input content
pull/215/head
Jimmy Lauzau 7 years ago committed by GitHub
commit b802a10769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/explorer_web/assets/css/app.scss
  2. 7
      apps/explorer_web/assets/css/code.scss
  3. 8
      apps/explorer_web/lib/explorer_web/templates/transaction/overview.html.eex

@ -19,11 +19,13 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
@import "node_modules/bootstrap/scss/root";
@import "node_modules/bootstrap/scss/reboot";
@import "node_modules/bootstrap/scss/grid";
@import "node_modules/bootstrap/scss/code";
@import "node_modules/bootstrap/scss/utilities/spacing";
@import "node_modules/bootstrap/scss/utilities/sizing";
@import "node_modules/bootstrap/scss/utilities/display";
@import "node_modules/bootstrap/scss/utilities/flex";
@import "node_modules/bootstrap/scss/utilities/text";
@import "node_modules/bootstrap/scss/utilities/background";
// Bootstrap Components
@import "node_modules/bootstrap/scss/dropdown";
@ -40,6 +42,8 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
@import "content";
@import "utilities";
@import "typography";
@import "tooltip";
@import "code";
@import "components/panels";
@import "components/header";
@import "components/sidebar";
@ -52,7 +56,6 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
@import "components/filter";
@import "components/button";
@import "components/table";
@import "tooltip";
:export {
primary: $primary;

@ -0,0 +1,7 @@
.pre-wrap {
white-space: normal;
code {
word-break: break-all;
}
}

@ -153,7 +153,15 @@
<%= gettext "Input" %>
</th>
<td title="<%= @transaction.input %>">
<div class="card bg-light">
<div class="card-body">
<pre class="pre-scrollable pre-wrap mb-0">
<code>
<%= @transaction.input %>
</code>
</pre>
</div>
</div>
</td>
</tr>
</tbody>

Loading…
Cancel
Save