mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-22 17:14:32 +01:00
Download Card CSS Fix
This commit is contained in:
parent
504f399d77
commit
7fc7842770
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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")
|
Loading…
Reference in New Issue
Block a user