From aaa4c261eb42ae0f72cf09058b1be41262cfef1b Mon Sep 17 00:00:00 2001 From: Lanius Trolling Date: Wed, 17 Aug 2022 08:23:12 -0400 Subject: [PATCH] Change image sizing --- src/main/kotlin/info/mechyrdia/lore/parser_tags.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/info/mechyrdia/lore/parser_tags.kt b/src/main/kotlin/info/mechyrdia/lore/parser_tags.kt index 3b98e99..6ada308 100644 --- a/src/main/kotlin/info/mechyrdia/lore/parser_tags.kt +++ b/src/main/kotlin/info/mechyrdia/lore/parser_tags.kt @@ -297,7 +297,7 @@ enum class TextParserFormattingTag(val type: TextParserTagType) { } ?: (null to null) fun getTableSizeAttributes(width: Int?, height: Int?) = (width?.let { " colspan=\"$it\"" } ?: "") + (height?.let { " rowspan=\"$it\"" } ?: "") - fun getImageSizeAttributes(width: Int?, height: Int?) = " style=\"" + (width?.let { "width: ${it * 0.032}vmin;" } ?: "") + (height?.let { "height: ${it * 0.032}vmin;" } ?: "") + "\"" + fun getImageSizeAttributes(width: Int?, height: Int?) = " style=\"" + (width?.let { "width: ${it * 0.025}vmin;" } ?: "") + (height?.let { "height: ${it * 0.025}vmin;" } ?: "") + "\"" } } -- 2.25.1