Forewarning, this _may_ be bike-shedding worthy....
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36
. (Chrome on Windows 7)
The CatPhoto is where you make an web page and one component is adding three buttons like below.
But then you will eventually make it into something like this below.
Notice that the red Delete button is squished and on the side (this is mostly a desktop problem; mobile user won't have the same issue -- see below)
So I propose two things:
btn-sm
to make the text inside the button not seem all smushed.Example:
<button class="btn btn-block btn-info btn-sm"><i class="fa fa-info-circle"></i> Info</button>
If the proposed changes were made, the finished app will look like this:
I don't think the icon matches the word 'edit'. You would need to change the icon to something like fa-pencil-square-o
. I don't think the new challenge is necessary however. I can submit a pr with the changes if everyone is happy with @erictleung changes.
This all seems backwards. The challenges are teaching about responsive design, where elements should move and scale appropriately for their content, but the proposed solution involves editing the content to conform to the layout. An Edit button also doesn't seem to fit the same type of 'dangerous action' as a Delete button.
Some questions:
Can you provide viewport width @erictleung ?
@BKinahan good point. Responsive design is the reason for these challenge. My responsive design skills aren't up to part to figure our how to make it work. And the icon issue can easily be changed to something more appropriate.
I like the idea of the btn-sm
- that's a feature that until recently I was not aware of.
In "the real world", what I would likely do for an interface like this is make those buttons col-xs-12
so they were stacked up vertically.
Maybe changing it to work like that might be good? Also an introduction to the bootstrap grid?
The text looks better (centered properly) with btn-xs
@SaintPeter The Bootstrap grid is introduced in Use the Bootstrap Grid to Put Element Side by Side.
@BKinahan I would be worried that the buttons look too small at that point. And for me at least, the word Delete gets slightly squished again.
I think keeping the buttons in there put side-by-side is good because it introduces and uses the Bootstrap grid system. For such a small screen, it would be hard to introduce it any other way.
how about changing the buttons to be inside a button group
<div class="row">
<div class="col-xs-12">
<div class="btn-group btn-group-justified" role="group">
<div class="btn-group" role="group">
<button class="btn btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="btn-group" role="group">
<button class="btn btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="btn-group" role="group">
<button class="btn btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
</div>
apparently the btn-group
around each buttons is nessary when using actual buttons and not anchor elements.. Bootstrap: button groups justified
I believe .btn-block
is meant to for full-width buttons so it is perhaps not playing nice with .col-xs-4
Sorry noticed this was supposed to be about using the grid, and not just making the buttons look nicer.
Hate me if you will, but my two cents are that people should be learning design concepts rather than blindly using the opinionated design parameters bundled in this or any framework. But that's just my opinion.
There's no consideration in this discussion for white space, grid alignment or modularity, thus you see how the elements are all cramped vertically. And even using Bootstrap's "solution", faking that vertical through adding seemingly empty rows (full of  
_shrieks_, as I've seen some people in the industry) is just subpar.
And I do agree with @BKinahan... modifying content so it fits the layout is just bad design.
Hi there,
As long as you guys are looking into UI issues on the simulated view, maybe you can also fix the breaking into two lines of the 'Loving' checkbox:
+1 for both of these
I also would love to learn to to actually fit this problem with the Loving line drop and the cut of delete through the Challenges
I think we should find a remedy for this. It does look unfinished and could be confusing to campers. Given the challenges before this one, I recommend one of the following:
Solution 1:
Rely on challenge "Create a Custom Heading" to communicate putting items side-by-side and bootstrap grid (may require new instructions). Then remove challenge "Use the Bootstrap Grid to Put Elements Side By Side" in favor of a challenge to introduce btn-groups per @jnmorse suggestions.
Solution 2 (image): Add a component of "Use the Bootstrap Grid to Put Elements Side By Side" that recommends campers add a "buttons" class to their row and then add the following CSS:
.buttons .col-xs-4 {
padding: 0;
}
Solution 3 (image): Rely on challenge "Create a Custom Heading" to communicate putting items side-by-side and bootstrap grid (may require new instructions). Then remove challenge "Use the Bootstrap Grid to Put Elements Side By Side". This results in full-width buttons which would be acceptable responsive design for a mobile device.
My vote is solution 3.
Most helpful comment
Hi there,
As long as you guys are looking into UI issues on the simulated view, maybe you can also fix the breaking into two lines of the 'Loving' checkbox: