consisant bg positioning (always bottom)

This commit is contained in:
Torsten 2023-01-16 22:39:59 +02:00
parent c58b5fc4ba
commit 73cf70d74f

View File

@ -26,8 +26,8 @@ module Merged
clazz += " bg-fixed"
end
if(align = section.option("image_align"))
align += "-bottom" unless align == "center"
# for tailwind: bg-left-bottom bg-right-bottom bg-center
align = "bg-bottom" if align == "center"
# for tailwind: bg-left-bottom bg-right-bottom
clazz += " bg-#{align}"
end
{class: clazz , style: style}