Change image sizing
authorLanius Trolling <lanius@laniustrolling.dev>
Wed, 17 Aug 2022 12:23:12 +0000 (08:23 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Wed, 17 Aug 2022 12:23:12 +0000 (08:23 -0400)
src/main/kotlin/info/mechyrdia/lore/parser_tags.kt

index 3b98e99961187432a06f3d8f981ec1b59cbc957f..6ada30891cd2d75f8afbca128eaf2ce403719d00 100644 (file)
@@ -297,7 +297,7 @@ enum class TextParserFormattingTag(val type: TextParserTagType<Unit>) {
                } ?: (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;" } ?: "") + "\""
        }
 }