Skip to content

Commit 3b64921

Browse files
Serhii Prykhozhyiphilippem
authored andcommitted
fix the overflowing style issue and update the generic landing term
1 parent 9e68aea commit 3b64921

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

client/src/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function main({ DOM, HTTP, route, storage, scanner: scan$, search
3131
/// User actions
3232
, page$ = route()
3333
, goHome$ = route('/')
34-
, goLanding$= route('/explorer-api')
34+
, goAPILanding$= route('/explorer-api')
3535
, goBlocks$ = route('/blocks/recent').map(loc => ({ start_height: loc.query.start != null ? +loc.query.start : null }))
3636
, goBlock$ = route('/block/:hash').map(loc => ({ hash: loc.params.hash, start_index: +loc.query.start || 0 }))
3737
, goHeight$ = route('/block-height/:height').map(loc => loc.params.height)
@@ -227,7 +227,7 @@ export default function main({ DOM, HTTP, route, storage, scanner: scan$, search
227227
// Currently visible view
228228
, view$ = O.merge(page$.mapTo(null)
229229
, goHome$.mapTo('dashBoard')
230-
, goLanding$.mapTo('landing')
230+
, goAPILanding$.mapTo('apiLanding')
231231
, goBlocks$.mapTo('recentBlocks')
232232
, goRecent$.mapTo('recentTxs')
233233
, block$.filter(notNully).mapTo('block')
@@ -244,7 +244,7 @@ export default function main({ DOM, HTTP, route, storage, scanner: scan$, search
244244

245245
// Page title
246246
, title$ = O.merge(page$.mapTo(null)
247-
, goLanding$.withLatestFrom(t$, (_, t) => t`Explorer API`)
247+
, goAPILanding$.withLatestFrom(t$, (_, t) => t`Explorer API`)
248248
, block$.filter(notNully).withLatestFrom(t$, (block, t) => t`Block #${block.height}: ${block.id}`)
249249
, tx$.filter(notNully).withLatestFrom(t$, (tx, t) => t`Transaction: ${tx.txid}`)
250250
, addr$.filter(notNully).withLatestFrom(goAddr$, t$, (_, goAddr, t) => t`Address: ${goAddr.display_addr}`)

client/src/views/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { dashBoard } from './home'
2-
export { default as landing } from './lander'
2+
export { default as apiLanding } from './lander'
33
export { recentBlocks } from './blocks-all'
44
export { recentTxs } from './transactions-all'
55
export { default as block } from './block'

client/src/views/lander.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,6 @@ const LandingPage = ({ t, ...S }) => layout(
183183

184184
</div>
185185
</div>
186-
, { t, activeTab: 'landing', ...S })
186+
, { t, activeTab: 'apiLanding', ...S })
187187

188188
export default LandingPage

client/src/views/sub-navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default ( t, isTouch, activeTab) =>
99
<a href="blocks/recent" class={{ active: activeTab == 'recentBlocks' }}>Blocks</a>
1010
<a href="tx/recent" class={{ active: activeTab == 'recentTxs' }}>Transactions</a>
1111
{ process.env.IS_ELEMENTS ? <a href="assets" class={{ active: activeTab == 'assets' }}>Assets<sup className="highlight"></sup></a> : "" }
12-
<a href="/explorer-api" class={{ active: activeTab == 'landing' }}>Explorer API</a>
12+
<a href="/explorer-api" class={{ active: activeTab == 'apiLanding' }}>Explorer API</a>
1313
</div>
1414

1515
{ search({ t, autofocus: !isTouch }) }

www/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2954,7 +2954,6 @@ h3.table-title{
29542954
/* Landing Page */
29552955

29562956
.landing-page {
2957-
margin-bottom: -100px;
29582957
position: relative;
29592958
}
29602959

0 commit comments

Comments
 (0)