From 73cf70d74f24e4c9b4dafaf942bea74392ed8ef2 Mon Sep 17 00:00:00 2001 From: Torsten Date: Mon, 16 Jan 2023 22:39:59 +0200 Subject: [PATCH] consisant bg positioning (always bottom) --- app/helpers/merged/view_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/merged/view_helper.rb b/app/helpers/merged/view_helper.rb index 10deee6..89c0e0a 100644 --- a/app/helpers/merged/view_helper.rb +++ b/app/helpers/merged/view_helper.rb @@ -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}