parent
72e887a777
commit
0466761253
@ -1,38 +1,43 @@ |
||||
.card { |
||||
border: none; |
||||
box-shadow: 0 5px 40px -5px rgba($black, 0.25); |
||||
border-radius: 0; |
||||
margin-bottom: 3rem; |
||||
|
||||
&-primary { |
||||
background-color: $primary; |
||||
} |
||||
border-radius: 10px; |
||||
border: none; |
||||
box-shadow: 0 5px 40px -5px rgba(#000, 0.25); |
||||
margin-bottom: 3rem; |
||||
|
||||
&-primary { |
||||
background-color: $primary; |
||||
} |
||||
} |
||||
|
||||
.card-header { |
||||
background-color: $white; |
||||
background-color: #fff; |
||||
|
||||
&-tabs { |
||||
margin: (-$card-spacer-y) (-$card-spacer-x); |
||||
} |
||||
&-tabs { |
||||
margin: (-$card-spacer-y) (-$card-spacer-x); |
||||
} |
||||
} |
||||
|
||||
.card-title { |
||||
line-height: 2.2rem; |
||||
margin-bottom: 2rem; |
||||
color: #333; |
||||
font-size: 18px; |
||||
font-weight: normal; |
||||
line-height: 2.2rem; |
||||
margin-bottom: 2rem; |
||||
} |
||||
|
||||
.card-body { |
||||
padding: 2.25rem 1.25rem; |
||||
padding: 30px; |
||||
} |
||||
|
||||
.card-server-response-body { |
||||
max-height: 400px; |
||||
overflow-y: auto; |
||||
max-height: 400px; |
||||
overflow-y: auto; |
||||
} |
||||
|
||||
.card-chain-blocks { |
||||
height: auto; |
||||
height: auto; |
||||
|
||||
@include media-breakpoint-down(md) { height: 595px; } |
||||
} |
||||
@include media-breakpoint-down(md) { |
||||
height: 595px; |
||||
} |
||||
} |
@ -1,30 +1,32 @@ |
||||
<div class="col-lg-3 fade-up-blocks-chain" data-selector="chain-block" data-block-number="<%= @block.number %>"> |
||||
<div class="tile tile-type-block d-flex flex-column"> |
||||
<div class="tile tile-type-block n-p d-flex flex-column"> |
||||
<%= link( |
||||
@block, |
||||
class: "tile-title", |
||||
to: block_path(BlockScoutWeb.Endpoint, :show, @block), |
||||
"data-selector": "block-number" |
||||
) %> |
||||
<div> |
||||
<span class="mr-2"> <%= gettext("%{count} Transactions", count: Enum.count(@block.transactions)) %> </span> |
||||
<span class="text-nowrap" data-from-now="<%= @block.timestamp %>"> </span> |
||||
</div> |
||||
<span class="text-truncate"> |
||||
<%= gettext "Miner" %> |
||||
<div class="tile-bottom-contents"> |
||||
<div class="tile-transactions"> |
||||
<span class="mr-2"> <%= gettext("%{count} Transactions", count: Enum.count(@block.transactions)) %> </span> |
||||
<span class="text-nowrap" data-from-now="<%= @block.timestamp %>"> </span> |
||||
</div> |
||||
<div class="text-truncate"> |
||||
<%= gettext "Miner" %> |
||||
|
||||
<%= render BlockScoutWeb.AddressView, |
||||
"_link.html", |
||||
address: @block.miner, |
||||
contract: false %> |
||||
</span> |
||||
<%= render BlockScoutWeb.AddressView, |
||||
"_link.html", |
||||
address: @block.miner, |
||||
contract: false %> |
||||
</div> |
||||
|
||||
<%= if BlockScoutWeb.BlockView.show_reward?(@block.rewards) do %> |
||||
<span class="text-truncate"> |
||||
<%= gettext "Reward" %> |
||||
<%= if BlockScoutWeb.BlockView.show_reward?(@block.rewards) do %> |
||||
<div class="text-truncate"> |
||||
<%= gettext "Reward" %> |
||||
|
||||
<%= BlockScoutWeb.BlockView.combined_rewards_value(@block) %> |
||||
</span> |
||||
<% end %> |
||||
<%= BlockScoutWeb.BlockView.combined_rewards_value(@block) %> |
||||
</div> |
||||
<% end %> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
Loading…
Reference in new issue