Merge branch 'master' into fix/#1981-missing-tx-hashes

pull/2019/head
Victor Baranov 6 years ago committed by GitHub
commit df8126db1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 6
      apps/block_scout_web/assets/css/app.scss
  3. 9
      apps/block_scout_web/assets/js/lib/card_tabs.js
  4. 2
      apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex
  5. 2
      apps/block_scout_web/lib/block_scout_web/templates/block_transaction/index.html.eex
  6. 2
      apps/block_scout_web/lib/block_scout_web/templates/tokens/overview/_tabs.html.eex
  7. 2
      apps/block_scout_web/lib/block_scout_web/templates/transaction/_tabs.html.eex

@ -22,6 +22,7 @@
### Fixes ### Fixes
- [#2019](https://github.com/poanetwork/blockscout/pull/2019) - Fixed the missing tx hashes. - [#2019](https://github.com/poanetwork/blockscout/pull/2019) - Fixed the missing tx hashes.
- [#2020](https://github.com/poanetwork/blockscout/pull/2020) - Fixed a bug triggered when a second click to a selected tab caused the other tabs to hide.
- [#1944](https://github.com/poanetwork/blockscout/pull/1944) - fixed styles for token's dropdown. - [#1944](https://github.com/poanetwork/blockscout/pull/1944) - fixed styles for token's dropdown.
- [#1926](https://github.com/poanetwork/blockscout/pull/1926) - status label alignment - [#1926](https://github.com/poanetwork/blockscout/pull/1926) - status label alignment
- [#1849](https://github.com/poanetwork/blockscout/pull/1849) - Improve chains menu - [#1849](https://github.com/poanetwork/blockscout/pull/1849) - Improve chains menu

@ -123,9 +123,9 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
@import "components/errors"; @import "components/errors";
:export { :export {
primary: $primary; dashboardBannerChartAxisFontColor: $dashboard-banner-chart-axis-font-color;
secondary: $secondary;
dashboardLineColorMarket: $dashboard-line-color-market; dashboardLineColorMarket: $dashboard-line-color-market;
dashboardLineColorPrice: $dashboard-line-color-price; dashboardLineColorPrice: $dashboard-line-color-price;
dashboardBannerChartAxisFontColor: $dashboard-banner-chart-axis-font-color; primary: $primary;
secondary: $secondary;
} }

@ -1,15 +1,19 @@
import $ from 'jquery' import $ from 'jquery'
$(function () { $(function () {
const activeTabCard = $('.card-tab.active') const tabCards = $('.js-card-tabs')
const activeTabCard = tabCards.find('.active')
const isMobileCardTabs = tabCards.children(':hidden').length
const isOnlyChild = !activeTabCard.siblings().length
if (!activeTabCard.siblings().length) { if (isOnlyChild) {
activeTabCard.addClass('noCaret') activeTabCard.addClass('noCaret')
} }
activeTabCard.on('click', function (e) { activeTabCard.on('click', function (e) {
e.preventDefault() e.preventDefault()
if (isMobileCardTabs) {
const siblings = $(this).siblings() const siblings = $(this).siblings()
if (siblings.is(':hidden')) { if (siblings.is(':hidden')) {
@ -17,5 +21,6 @@ $(function () {
} else { } else {
siblings.hide() siblings.hide()
} }
}
}) })
}) })

@ -1,4 +1,4 @@
<div class="card-tabs"> <div class="card-tabs js-card-tabs">
<%= link( <%= link(
gettext("Transactions"), gettext("Transactions"),
class: "card-tab #{tab_status("transactions", @conn.request_path)}", class: "card-tab #{tab_status("transactions", @conn.request_path)}",

@ -4,7 +4,7 @@
<section> <section>
<div class="card mb-3"> <div class="card mb-3">
<div class="card-tabs"> <div class="card-tabs js-card-tabs">
<%= <%=
link( link(
gettext("Transactions"), gettext("Transactions"),

@ -1,4 +1,4 @@
<div class="card-tabs"> <div class="card-tabs js-card-tabs">
<%= link( <%= link(
gettext("Token Transfers"), gettext("Token Transfers"),
class: "card-tab #{tab_status("token_transfers", @conn.request_path)}", class: "card-tab #{tab_status("token_transfers", @conn.request_path)}",

@ -1,4 +1,4 @@
<div class="card-tabs"> <div class="card-tabs js-card-tabs">
<%= if @show_token_transfers do %> <%= if @show_token_transfers do %>
<%= link( <%= link(
gettext("Token Transfers"), gettext("Token Transfers"),

Loading…
Cancel
Save