From 29d2f542fc92d19cf2bb32bb60142665225be793 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 29 Jul 2023 17:04:11 +0100 Subject: [PATCH] Chore: Remove smaller lesson content font size feature flag (#4042) Because: * It has been enabled and rolled out to all users. * Closes: https://github.com/TheOdinProject/theodinproject/issues/4006 This commit: * Reverts the PR that added the feature flag --- app/components/content_container_component.html.erb | 2 +- app/components/content_container_component.rb | 11 ++--------- app/views/lessons/show.html.erb | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) 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 %>