Merge branch 'master' into ab-add-new-fields-for-contract-verification

pull/2235/head
Ayrat Badykov 5 years ago committed by GitHub
commit e722891762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 35
      apps/block_scout_web/assets/css/components/_navbar.scss
  3. 1
      apps/block_scout_web/assets/js/app.js
  4. 9
      apps/block_scout_web/assets/js/pages/layout.js
  5. 4
      apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex

@ -9,6 +9,7 @@
- [#2235](https://github.com/poanetwork/blockscout/pull/2235) - save and show additional validation fields to smart contract - [#2235](https://github.com/poanetwork/blockscout/pull/2235) - save and show additional validation fields to smart contract
### Fixes ### Fixes
- [#2238](https://github.com/poanetwork/blockscout/pull/2238) - header content alignment issue, hide navbar on outside click
- [#2229](https://github.com/poanetwork/blockscout/pull/2229) - gap issue between qr and copy button in token transfers, top cards width and height issue - [#2229](https://github.com/poanetwork/blockscout/pull/2229) - gap issue between qr and copy button in token transfers, top cards width and height issue
- [#2201](https://github.com/poanetwork/blockscout/pull/2201) - footer columns fix - [#2201](https://github.com/poanetwork/blockscout/pull/2201) - footer columns fix
- [#2179](https://github.com/poanetwork/blockscout/pull/2179) - fix docker build error - [#2179](https://github.com/poanetwork/blockscout/pull/2179) - fix docker build error

@ -21,8 +21,8 @@ $navbar-logo-width: auto !default;
.nav-item { .nav-item {
font-size: 14px; font-size: 14px;
} }
.navbar-nav { .navbar-nav {
flex-grow: 1;
.nav-link { .nav-link {
align-items: center; align-items: center;
@ -153,6 +153,18 @@ $navbar-logo-width: auto !default;
@include media-breakpoint-up(xl) { @include media-breakpoint-up(xl) {
width: 280px; width: 280px;
} }
@media (min-width: 1366px) {
width: 330px;
}
@media (min-width: 1440px) {
width: 380px;
}
@media (min-width: 1580px) {
width: 430px;
}
@media (min-width: 1800px) {
width: 520px;
}
} }
.input-group-append { .input-group-append {
height: 38px; height: 38px;
@ -198,7 +210,7 @@ $navbar-logo-width: auto !default;
width: 100%; width: 100%;
.awesomplete { .awesomplete {
@include media-breakpoint-down(sm) { @include media-breakpoint-down(lg) {
width: 100%; width: 100%;
} }
} }
@ -210,6 +222,10 @@ $navbar-logo-width: auto !default;
.navbar-brand { .navbar-brand {
margin-left: 0; margin-left: 0;
flex-shrink: 1;
.navbar-logo {
max-width: 100%;
}
} }
.navbar-logo { .navbar-logo {
@ -227,3 +243,18 @@ $navbar-logo-width: auto !default;
.add-border { .add-border {
border: 1px solid transparentize($white, 0.30); border: 1px solid transparentize($white, 0.30);
} }
.navbar-collapse {
justify-content: flex-end;
align-items: flex-start;
flex-shrink: 0;
@media (min-width: 992px) {
align-items: center;
}
}
.navbar-container, .navbar-primary {
@include media-breakpoint-up(xl) {
padding-right: 0;
}
}

@ -31,6 +31,7 @@ import './pages/chain'
import './pages/pending_transactions' import './pages/pending_transactions'
import './pages/transaction' import './pages/transaction'
import './pages/transactions' import './pages/transactions'
import './pages/layout'
import './pages/admin/tasks.js' import './pages/admin/tasks.js'

@ -0,0 +1,9 @@
import $ from 'jquery'
$(document).click(function (event) {
var clickover = $(event.target)
var _opened = $('.navbar-collapse').hasClass('show')
if (_opened === true && $('.navbar').find(clickover).length < 1) {
$('.navbar-toggler').click()
}
})

@ -1,5 +1,5 @@
<nav class="navbar navbar-dark navbar-expand-lg navbar-primary" data-selector="navbar"> <nav class="navbar navbar-dark navbar-expand-lg navbar-primary" data-selector="navbar">
<div class="container"> <div class="container-fluid navbar-container">
<%= link to: chain_path(@conn, :show), class: "navbar-brand", "data-test": "header_logo" do %> <%= link to: chain_path(@conn, :show), class: "navbar-brand", "data-test": "header_logo" do %>
<img class="navbar-logo" src="<%= logo() %>" alt="<%= subnetwork_title() %>" /> <img class="navbar-logo" src="<%= logo() %>" alt="<%= subnetwork_title() %>" />
<% end %> <% end %>
@ -7,7 +7,7 @@
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav">
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link topnav-nav-link dropdown-toggle" href="#" id="navbarBlocksDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <a class="nav-link topnav-nav-link dropdown-toggle" href="#" id="navbarBlocksDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="nav-link-icon"> <span class="nav-link-icon">

Loading…
Cancel
Save