Ui improvements and bug fixes

This commit is contained in:
2026-03-08 14:51:39 -04:00
parent adf3183cb8
commit b46c70a221
7 changed files with 294 additions and 21 deletions

View File

@@ -222,6 +222,7 @@ module CommunityLanding
["#cl-about", safe_hex(:about_bg_dark), safe_hex(:about_bg_light)],
["#cl-participation", safe_hex(:participation_bg_dark), safe_hex(:participation_bg_light)],
["#cl-topics", safe_hex(:topics_bg_dark), safe_hex(:topics_bg_light)],
["#cl-splits", safe_hex(:splits_bg_dark), safe_hex(:splits_bg_light)],
["#cl-app-cta", safe_hex(:app_cta_bg_dark), safe_hex(:app_cta_bg_light)],
["#cl-footer", safe_hex(:footer_bg_dark), safe_hex(:footer_bg_light)],
]
@@ -237,6 +238,11 @@ module CommunityLanding
end
end
faq_mh = (@s.faq_mobile_max_height rescue 0).to_i
if faq_mh > 0
css << "@media (max-width: 767px) { .cl-faq { max-height: #{faq_mh}px; overflow-y: auto; } }\n"
end
css.present? ? "<style>\n#{css}</style>\n" : ""
end