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

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

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

Loading…
Cancel
Save