fix: Announcement rendering

This commit is contained in:
Ushie
2026-03-20 19:24:29 +03:00
committed by GitHub
parent d9485f4581
commit 3849226315

View File

@@ -137,7 +137,7 @@ fun AnnouncementScreen(
</body>
</html>
""".trimIndent()
webView.loadData(style, "text/html", "UTF-8")
webView.loadDataWithBaseURL(null, style, "text/html", "UTF-8", null)
},
onRelease = {
val webView = it.children.first() as WebView
@@ -150,4 +150,4 @@ fun AnnouncementScreen(
private fun Color.toCss(): String {
return "rgba(${red * 255f}, ${green * 255f}, ${blue * 255f}, $alpha)"
}
}