diff --git a/cmd/dcrdata/internal/explorer/explorerroutes.go b/cmd/dcrdata/internal/explorer/explorerroutes.go index 9ad50bdced..21a7cecdbd 100644 --- a/cmd/dcrdata/internal/explorer/explorerroutes.go +++ b/cmd/dcrdata/internal/explorer/explorerroutes.go @@ -368,14 +368,16 @@ func (exp *explorerUI) VisualBlocks(w http.ResponseWriter, r *http.Request) { str, err := exp.templates.exec("visualblocks", struct { *CommonPageData - Info *types.HomeInfo - Mempool *types.TrimmedMempoolInfo - Blocks []*types.TrimmedBlockInfo + Info *types.HomeInfo + Mempool *types.TrimmedMempoolInfo + Blocks []*types.TrimmedBlockInfo + VisualBlocks bool }{ CommonPageData: exp.commonData(r), Info: exp.pageData.HomeInfo, Mempool: mempoolInfo, Blocks: trimmedBlocks, + VisualBlocks: true, }) exp.pageData.RUnlock() diff --git a/cmd/dcrdata/public/scss/visualblocks.scss b/cmd/dcrdata/public/scss/visualblocks.scss index d06766eca7..982bac8773 100644 --- a/cmd/dcrdata/public/scss/visualblocks.scss +++ b/cmd/dcrdata/public/scss/visualblocks.scss @@ -1,13 +1,3 @@ -#mainContainer { - max-width: 100% !important; - width: 100%; - padding: 0 10%; - display: flex; - flex-wrap: wrap; - margin: 30px 0; - align-items: flex-start; -} - .blocks-section { flex-grow: 1; flex-basis: 250px; @@ -186,10 +176,6 @@ text-decoration: none; } -#mainContainer .decimal { - margin-left: 0; -} - .blockhchainWrapper { padding: 60px 0; } @@ -326,12 +312,6 @@ body.darkBG { } } -@media only screen and (max-width: 768px) { - #mainContainer { - padding: 0 5%; - } -} - @media only screen and (max-width: 576px) { .blocks-section { padding: 0; diff --git a/cmd/dcrdata/views/extras.tmpl b/cmd/dcrdata/views/extras.tmpl index d6675c363c..effdb71028 100644 --- a/cmd/dcrdata/views/extras.tmpl +++ b/cmd/dcrdata/views/extras.tmpl @@ -61,7 +61,7 @@ - + @@ -365,6 +365,10 @@ Blocks
+ + Visual Blocks + + Windows diff --git a/cmd/dcrdata/views/visualblocks.tmpl b/cmd/dcrdata/views/visualblocks.tmpl index 839c35af70..769cf84f61 100644 --- a/cmd/dcrdata/views/visualblocks.tmpl +++ b/cmd/dcrdata/views/visualblocks.tmpl @@ -3,27 +3,14 @@ {{ template "html-head" headData .CommonPageData "Decred Block Explorer by dcrdata.org"}} {{ template "navbar" . }} - -