Sha256: 007a191f078df810ca8e95d877f7d4b639aeecf736bd7fb4fca20fe1c573f2a6
Contents?: true
Size: 673 Bytes
Versions: 8
Compression:
Stored size: 673 Bytes
Contents
class ContentRowDecorator < ApplicationDecorator delegate_all # If the max. column count for the biggest screen medium is met, we can safely # assume no more additional columns are needed. def column_limit_reached? column_width_calculator.total(:width_xl) >= 12 end def classes list = [] if horizontal_alignment.to_s == 'center' list << 'justify-content-center' elsif horizontal_alignment.to_s == 'right' list << 'justify-content-end' end if vertical_alignment.to_s == 'center' list << 'align-items-center' elsif vertical_alignment.to_s == 'bottom' list << 'align-items-end' end list end end
Version data entries
8 entries across 8 versions & 1 rubygems