mirror of
https://github.com/kognise/water.css.git
synced 2025-08-22 12:53:25 +02:00
fix: replace <br /> with padding-top
+ prevent potential error in getFileSize()
This commit is contained in:
@@ -356,8 +356,6 @@
|
||||
<h6>Heading 6</h6>
|
||||
|
||||
<footer>
|
||||
<br />
|
||||
<br />
|
||||
<a href="#">Back to top <span class="emoji">⬆</span></a>
|
||||
</footer>
|
||||
|
||||
|
@@ -30,7 +30,7 @@ const getFileName = ({ theme, isLegacy, isStandalone }) => {
|
||||
|
||||
/** @param {VersionOptions} options */
|
||||
const getFileSize = options => {
|
||||
return FILE_SIZES[getFileName(options)] || '...'
|
||||
return FILE_SIZES[getFileName(options)] || 0
|
||||
}
|
||||
|
||||
const getFilePreloadSnippet = (mainFileName, altFileName, altTheme) => {
|
||||
|
@@ -32,6 +32,7 @@ html {
|
||||
}
|
||||
|
||||
body > footer {
|
||||
padding-top: 2rem;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: flex-end;
|
||||
|
Reference in New Issue
Block a user