Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[1.0.0] alignment problem in accordion

Open playgithub opened this issue 12 years ago • 6 comments

image

playgithub avatar Nov 26 '14 16:11 playgithub

Can you please fork JSFiddle in readme to create a test case

jlukic avatar Nov 26 '14 18:11 jlukic

http://jsfiddle.net/gu6f4cfj/9/

playgithub avatar Nov 27 '14 03:11 playgithub

The reason seems to be that all .ui.horizontal.list>.item except from the first one have a left margin

Not quite related to the problem:

//$('.ui.accordion').accordion(); // not work if I uncomment this, don't know why, the alignment problem ocurrs without this line

That's because you didn't include semantic.min.js to that jsfiddle.

anestv avatar Nov 27 '14 13:11 anestv

I fixed it. http://jsfiddle.net/gu6f4cfj/11/

playgithub avatar Nov 27 '14 16:11 playgithub

This is displaying as expected. A horizontal list can't know when a line break occurs. Horizontal lists just adds spacing horizontally between each element. You can use multiple horizontal lists with a ui divider inbetween as a line break, or manually add line breaks yourself with <br>

jlukic avatar Nov 27 '14 16:11 jlukic

The widths of list items varies, and it can't be determined where to add line breaks.

playgithub avatar Nov 28 '14 05:11 playgithub