Flexbox items is overlapping the wrapper. How can I change this?

Hello I am making a cards type of component in React, I have a problem with styling this particular part as the flexbox items is overlapping the wrapper. The JSX const OtherProjects = () => { return ( <div className=’opWrapper’> <div className="containerWrapper"> <div className="item"></div> <div className="item"></div> <div className="item"></div> <div className="item"></div> <div className="item"></div> <div className="item"></div> </div>… Read More Flexbox items is overlapping the wrapper. How can I change this?

Display yes/no with content_tag helper by boolean

I am trying to display a badge pill that says ‘Yes’ or ‘No’ based on it’s boolean value, using a content_tag rails helper. I currently have my helper method written out as def boolean_for(bool = false) style = [true, ‘true’, 1, ‘1’].include?(bool) ? [‘success’, t(‘Yes’)] : [‘danger’, t(‘No’)] content_tag(:span, ‘Selectable’, class: "badge badge-pill badge-%s"% style).html_safe… Read More Display yes/no with content_tag helper by boolean