Skip to content

Commit

Permalink
switch back to inline block box model for decimal parts
Browse files Browse the repository at this point in the history
  • Loading branch information
gozart1 committed Jan 22, 2019
1 parent 8e4fcb1 commit 763c9e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions public/scss/nexthome.scss
Expand Up @@ -11,10 +11,6 @@
align-items: flex-start;
}

.flex-space {
width: 5%;
}

.blocks-section {
flex-grow: 1;
flex-basis: 250px;
Expand Down
2 changes: 1 addition & 1 deletion views/extras.tmpl
Expand Up @@ -151,7 +151,7 @@
{{end}}

{{define "decimalParts"}}
<div class="decimal-parts d-flex align-items-baseline">
<div class="decimal-parts d-inline-block">
{{if eq (len .) 4}}
<span class="int">{{ index . 0 }}.{{ index . 1 }}</span
>{{if gt (len (index . 2)) 0}}<span class="decimal">{{ index . 2 }}</span
Expand Down
4 changes: 2 additions & 2 deletions views/home.tmpl
Expand Up @@ -141,7 +141,7 @@
<span id="hashrate-subdata" class="text-black-50">{{template "fmtPercentage" .HashRateChange}} in past 24h</span>
</div>
</div>
<div class="col-12 col-sm-5 col-md-6 col-lg-4 mb-3 mb-sm-2 mb-md-3 mb-lg-3">
<div class="col-6 col-sm-5 col-md-6 col-lg-4 mb-3 mb-sm-2 mb-md-3 mb-lg-3">
<div class="fs13 text-secondary">Next Block Reward Reduction</div>
<div class="progress mt-1 mb-1">
<div
Expand Down Expand Up @@ -237,7 +237,7 @@
<div class="d-flex flex-table-row mempool-row">
<a class="hash truncate-hash keyboard-target" style="flex: 1 1 auto" href="/tx/{{.Hash}}" title="{{.Hash}}">{{.Hash}}</a>
<span style="flex: 0 0 65px" class="mono text-right ml-1">{{.Type}}</span>
<span style="flex: 0 0 105px" class="mono text-right ml-1 fs13 text-secondary">
<span style="flex: 0 0 105px" class="mono text-right ml-1">
{{template "decimalParts" (float64AsDecimalParts .TotalOut 8 false)}}
</span>
<span style="flex: 0 0 50px" class="mono text-right ml-1">{{.Size}} B</span>
Expand Down

0 comments on commit 763c9e8

Please sign in to comment.