fix image size and crop and bg alignemnt options

This commit is contained in:
2023-01-16 23:18:49 +02:00
parent 73cf70d74f
commit b7251ef135
7 changed files with 52 additions and 261 deletions

View File

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