Skip to content

Make the default bootstrap column breakpoint sm, not xs#49

Closed
emRae wants to merge 2 commits into
TheWebShop:masterfrom
utah-marketing-communications:master
Closed

Make the default bootstrap column breakpoint sm, not xs#49
emRae wants to merge 2 commits into
TheWebShop:masterfrom
utah-marketing-communications:master

Conversation

@emRae
Copy link
Copy Markdown
Contributor

@emRae emRae commented May 7, 2015

Hello,

Thank you for putting this plugin together. In using it the one fatal flaw I noticed is that the default breakpoint class size is set to xs. I believe more people would like their columns to go to 100% width for phone / small devices than have them keep their original width.

The changes I made will switch the default breakpoint class size to sm, instead of xs. IMO, this makes the columns more responsive friendly.

Thanks,
:: Rachel

emRae added 2 commits May 7, 2015 16:12
put back xs for preview, replaced xs with sm for output
@Sinetheta
Copy link
Copy Markdown
Member

I think this is a reasonable change @emRae. I'd like to test it out before merging though since there are quite a few changes.

Comment thread js/plugins/grid.html
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just replace all the xs in the markup and call it a day?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean this line is unnecessary? Because I don't understand this phrase. Maybe @emRae can give me a hint.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this is a very late response. Once again, thanks for putting together the plugin!

The .replace(/xs/g, "sm") is meant to add the "sm" class to the custom column shortcodes. I wanted to keep the column size "xs" for the visual editor when you were creating your custom columns but output a "sm" class for the shortcode. This was my hack to do that. There may be a much better way.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that makes sense! However, I think it might be a little misleading for the output of the visual editor to differ what from the user just created.

This line was removed before I merged your changes, but I would be happy to consider an alternative solution. Perhaps an "improved" visual editor which makes it more clear what is going to go in the page, or gives the user the real-estate needed to see those sm breakpoints without needing to swap them out after-the-fact.

Thanks again for submitting these changes @emRae

@Sinetheta
Copy link
Copy Markdown
Member

I've cherry-picked these commits in 16dd20b e72e4ff but without the .replace(/xs/g, "sm") which didn't do anything. Thanks @emRae !

@Sinetheta Sinetheta closed this Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants