From 0e4b4d1fa336814bd9c2711de478ea31e5913ff8 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Thu, 20 Jun 2024 10:34:20 -0500 Subject: [PATCH] Explicitly set the margin class on the constraint component This makes it easier to override the margin if necessary --- app/assets/stylesheets/blacklight/_constraints.scss | 2 -- app/components/blacklight/constraint_component.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/stylesheets/blacklight/_constraints.scss b/app/assets/stylesheets/blacklight/_constraints.scss index 60c0936af8..05200f5404 100644 --- a/app/assets/stylesheets/blacklight/_constraints.scss +++ b/app/assets/stylesheets/blacklight/_constraints.scss @@ -6,8 +6,6 @@ } .applied-filter { - @extend .mx-1; - .constraint-value { cursor: default; text-overflow: ellipsis; diff --git a/app/components/blacklight/constraint_component.rb b/app/components/blacklight/constraint_component.rb index 3bde99b50f..5282c2f9b0 100644 --- a/app/components/blacklight/constraint_component.rb +++ b/app/components/blacklight/constraint_component.rb @@ -4,7 +4,7 @@ module Blacklight class ConstraintComponent < Blacklight::Component with_collection_parameter :facet_item_presenter - def initialize(facet_item_presenter:, classes: 'filter', layout: Blacklight::ConstraintLayoutComponent) + def initialize(facet_item_presenter:, classes: %w[filter mx-1], layout: Blacklight::ConstraintLayoutComponent) @facet_item_presenter = facet_item_presenter @classes = classes @layout = layout