diff --git a/apps/block_scout_web/assets/css/components/_navbar.scss b/apps/block_scout_web/assets/css/components/_navbar.scss index 9005d57ceb..63f08e1a2d 100644 --- a/apps/block_scout_web/assets/css/components/_navbar.scss +++ b/apps/block_scout_web/assets/css/components/_navbar.scss @@ -23,6 +23,11 @@ $navbar-logo-width: 100% !default; } .navbar-nav { + + .nav-submenu { + padding: 10px 20px; + color: $header-links-color; + } .nav-link { outline: none; diff --git a/apps/block_scout_web/assets/css/theme/_dark-theme.scss b/apps/block_scout_web/assets/css/theme/_dark-theme.scss index 44f951271e..d431ad834c 100644 --- a/apps/block_scout_web/assets/css/theme/_dark-theme.scss +++ b/apps/block_scout_web/assets/css/theme/_dark-theme.scss @@ -43,6 +43,9 @@ $dark-stakes-banned-background: #3e314c; background-color: $dark-light-bg; } } + .nav-submenu { + color: $labels-dark; + } } .navbar-brand .navbar-logo { filter: brightness(0) invert(1); diff --git a/apps/block_scout_web/assets/js/pages/verified_contracts.js b/apps/block_scout_web/assets/js/pages/verified_contracts.js index 5522af3680..f1727412b2 100644 --- a/apps/block_scout_web/assets/js/pages/verified_contracts.js +++ b/apps/block_scout_web/assets/js/pages/verified_contracts.js @@ -59,7 +59,7 @@ if ($('[data-page="verified-contracts-list"]').length) { const $element = $('[data-async-listing]') $element.on('click', '[data-next-page-button], [data-prev-page-button]', (event) => { - document.getElementById('verified-contratc-list').scrollIntoView() + document.getElementById('verified-contracts-list').scrollIntoView() }) const store = createAsyncLoadStore(reducer, initialState, 'dataset.identifierHash') @@ -79,13 +79,6 @@ if ($('[data-page="verified-contracts-list"]').length) { type: 'PAGE_LOAD' }) - $element.on('click', '[data-search-button]', searchFunc) - - $element.on('click', '[data-cancel-search-button]', (_event) => { - $('[data-search-field]').val('') - loadPage(store, window.location.pathname) - }) - $element.on('input keyup', '[data-search-field]', (event) => { if (event.type === 'input') { clearTimeout(timer) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex index 9a0d1ba675..34188f8494 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex @@ -29,13 +29,10 @@ <%= gettext("Blockchain") %>