mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-22 09:04: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){
|
for(release in allReleases){
|
||||||
release.assets.forEach {
|
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
|
totalCount += it.download_count
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -39,10 +39,10 @@ internal suspend fun updateDownloadCards(
|
|||||||
return getUpdatedContent(
|
return getUpdatedContent(
|
||||||
oldContent,
|
oldContent,
|
||||||
"""
|
"""
|
||||||
<a href="https://github.com/Shabinder/SpotiFlyer/releases/latest">
|
<a href="https://github.com/Shabinder/SpotiFlyer/releases/latest">
|
||||||
<img src="${getDownloadCard(totalDownloads)}"
|
<img src="${getDownloadCard(totalDownloads)}"
|
||||||
height="125" width="280" alt="Total Downloads">
|
height="125" width="280" alt="Total Downloads">
|
||||||
</a>
|
</a>
|
||||||
""".trimIndent(),
|
""".trimIndent(),
|
||||||
secrets.tagName
|
secrets.tagName
|
||||||
)
|
)
|
||||||
@ -176,6 +176,7 @@ val downloadCardCSS =
|
|||||||
|
|
||||||
.contact-wrapper a {
|
.contact-wrapper a {
|
||||||
display: block;
|
display: block;
|
||||||
|
white-space: nowrap;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,5 +5,5 @@ val String.byProperty: String get() = System.getenv(this)
|
|||||||
|
|
||||||
val String.byOptionalProperty: String? get() = System.getenv(this)
|
val String.byOptionalProperty: String? get() = System.getenv(this)
|
||||||
|
|
||||||
fun debug(message: String) = println("::debug::$message")
|
fun debug(message: String) = println("\n::debug::$message")
|
||||||
fun debug(tag: String, message: String) = println("::debug::$tag:\n$message")
|
fun debug(tag: String, message: String) = println("\n::debug::$tag:\n$message")
|
Loading…
Reference in New Issue
Block a user