Download Card CSS Fix

This commit is contained in:
shabinder 2021-06-06 01:12:57 +05:30
parent 504f399d77
commit 7fc7842770
2 changed files with 8 additions and 7 deletions

View File

@ -25,7 +25,7 @@ internal suspend fun updateDownloadCards(
for(release in allReleases){
release.assets.forEach {
debug("${it.name}: ${release.tag_name}" ,"Downloads: ${it.download_count}")
//debug("${it.name}: ${release.tag_name}" ,"Downloads: ${it.download_count}")
totalCount += it.download_count
}
}
@ -39,10 +39,10 @@ internal suspend fun updateDownloadCards(
return getUpdatedContent(
oldContent,
"""
<a href="https://github.com/Shabinder/SpotiFlyer/releases/latest">
<img src="${getDownloadCard(totalDownloads)}"
height="125" width="280" alt="Total Downloads">
</a>
<a href="https://github.com/Shabinder/SpotiFlyer/releases/latest">
<img src="${getDownloadCard(totalDownloads)}"
height="125" width="280" alt="Total Downloads">
</a>
""".trimIndent(),
secrets.tagName
)
@ -176,6 +176,7 @@ val downloadCardCSS =
.contact-wrapper a {
display: block;
white-space: nowrap;
text-decoration: none;
}

View File

@ -5,5 +5,5 @@ val String.byProperty: String get() = System.getenv(this)
val String.byOptionalProperty: String? get() = System.getenv(this)
fun debug(message: String) = println("::debug::$message")
fun debug(tag: String, message: String) = println("::debug::$tag:\n$message")
fun debug(message: String) = println("\n::debug::$message")
fun debug(tag: String, message: String) = println("\n::debug::$tag:\n$message")