diff --git a/app/components/content_container_component.html.erb b/app/components/content_container_component.html.erb index 1b03c4b684..137d5349b9 100644 --- a/app/components/content_container_component.html.erb +++ b/app/components/content_container_component.html.erb @@ -1,3 +1,3 @@ -
> +
> <%= content %>
diff --git a/app/components/content_container_component.rb b/app/components/content_container_component.rb index 17f3be829a..55532bb595 100644 --- a/app/components/content_container_component.rb +++ b/app/components/content_container_component.rb @@ -1,17 +1,10 @@ class ContentContainerComponent < ApplicationComponent - def initialize(classes: '', data_attributes: {}, current_user: nil) + def initialize(classes: '', data_attributes: {}) @classes = classes @data_attributes = data_attributes - @current_user = current_user end private - attr_reader :classes, :data_attributes, :current_user - - def font_size - return '' if current_user && Feature.enabled?(:lesson_content_font_size, current_user) - - 'md:prose-lg' - end + attr_reader :classes, :data_attributes end diff --git a/app/views/lessons/show.html.erb b/app/views/lessons/show.html.erb index bb86e43252..96ddd62552 100644 --- a/app/views/lessons/show.html.erb +++ b/app/views/lessons/show.html.erb @@ -7,7 +7,7 @@
- <%= render ContentContainerComponent.new(classes: 'xl:mx-0', data_attributes: { lesson_toc_target: 'lessonContent' }, current_user:) do %> + <%= render ContentContainerComponent.new(classes: 'xl:mx-0', data_attributes: { lesson_toc_target: 'lessonContent' }) do %> <%= @lesson.body.html_safe %> <% end %>