Skip to content

Commit

Permalink
Fix ultra-narrow footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdstock committed Nov 1, 2024
1 parent 4e8b446 commit 8c50a43
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
7 changes: 7 additions & 0 deletions internal/webapi/public/css/vspd.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ body {
}
}

.vsp-footer-left,
.vsp-footer-right {
display: flex;
padding-left: 0;
padding-right: 0;
}

.vsp-footer-left {
background-color: #091440;
}
Expand Down
20 changes: 12 additions & 8 deletions internal/webapi/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,31 @@
</div> <!-- vsp-page-content -->

<footer class="vsp-footer flex-md-row flex-row-reverse">
<div class="vsp-footer-bg-left d-none d-sm-block col-md-6 col-12"></div>
<div class="vsp-footer-bg-right d-none d-sm-block col-md-6 col-12"></div>
<div class="vsp-footer-bg-left col-md-6 col-12"></div>
<div class="vsp-footer-bg-right col-md-6 col-12"></div>

<div class="container d-flex flex-wrap px-0 px-sm-2 mx-0 mx-sm-auto">
<div class="container d-flex flex-wrap">

<div class="vsp-footer-left col-md-8 col-12 justify-content-center justify-content-md-start px-0">
<div class="vsp-footer-left col-md-8 col-12 justify-content-center justify-content-md-start">
<div class="d-inline-block text-left">
<p class="py-4 m-0">
<strong>Stats&nbsp;updated:</strong>&nbsp;{{ timeAgo .WebApiCache.UpdateTime }}
<br />
<strong>Support:</strong>&nbsp;<a href="mailto:{{ .WebApiCfg.SupportEmail }}" rel="noopener noreferrer">{{ .WebApiCfg.SupportEmail }}</a>
<br />
<strong>VSP&nbsp;public&nbsp;key:</strong>&nbsp;<span class="code text-break">{{ .WebApiCache.PubKey }}</span>
</p>
</div>
</div>

<div class="vsp-footer-right col-md-4 col-12 justify-content-center justify-content-md-end text-center text-md-right px-0">
<div class="vsp-footer-right col-md-4 col-12 justify-content-center justify-content-md-end">
<div class="d-block text-center text-md-right">
<p class="py-4 m-0">
Decred Developers | 2020-2024
<br />
The source code is available on <a href="https://github.com/decred/vspd" target="_blank" rel="noopener noreferrer">GitHub</a>
Decred Developers | 2020-2024
<br />
The source code is available on <a href="https://github.com/decred/vspd" target="_blank" rel="noopener noreferrer">GitHub</a>
</p>
</div>
</div>

</div>
Expand Down

0 comments on commit 8c50a43

Please sign in to comment.