You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the section number is too long to fit in the left column on a law listing, it breaks and occupies a second line. This throws off the layout and the float of the next law, resulting in them stacking up:
I've seen it cascade when there's a series of long section numbers, and it's rather a mess.
It seems to me that the ideal solution would be one that would allow that left column to collectively flex, to expand to the width of the widest section number in the list. But I appreciate that might be impractical, in which case a decent backup option would be to have the list handle more gracefully when that text wraps (just as when laws' catch lines are too long, which works great). And, of course, there's always the option of simply making that first column wider, but I don't know that we want to make every code's layout based on the longest possible section number in any legal code that we can find. :)
Agreed. flexing would be ideal. Do you have a worst case example? Sometimes, it's better to plan for it to go to two lines and handle that as well, but in this case, these are short enough that we should flex the left column out.
When the section number is too long to fit in the left column on a law listing, it breaks and occupies a second line. This throws off the layout and the float of the next law, resulting in them stacking up:
I've seen it cascade when there's a series of long section numbers, and it's rather a mess.
It seems to me that the ideal solution would be one that would allow that left column to collectively flex, to expand to the width of the widest section number in the list. But I appreciate that might be impractical, in which case a decent backup option would be to have the list handle more gracefully when that text wraps (just as when laws' catch lines are too long, which works great). And, of course, there's always the option of simply making that first column wider, but I don't know that we want to make every code's layout based on the longest possible section number in any legal code that we can find. :)
—
Reply to this email directly or view it on GitHub.
For the record, I do much prefer providing this data as a definition list, semantically, but there's a point when you've just got to be realistic. The fact is that there's bulk data and an API—nobody needs to be scraping these records. This isn't really tabular data, but it's not not tabular data. Tables are such a sensible solution that I think it's the way to go.
Activity
jathayde commentedon Jun 6, 2013
Agreed. flexing would be ideal. Do you have a worst case example? Sometimes, it's better to plan for it to go to two lines and handle that as well, but in this case, these are short enough that we should flex the left column out.
On Jun 6, 2013, at 5:17 PM, Waldo Jaquith [email protected] wrote:
waldoj commentedon Jun 6, 2013
In my travels about the code, I'll keep my eyes open for one that's just a hot mess.
waldoj commentedon Jul 1, 2013
Title 63.2, Chapter 12 is a hot mess. (Here's a Vagrant link that might work for you.)
I don't know if it's the worst case, but it's the worst I've noticed for a while. :)
jathayde commentedon Jul 1, 2013
That's about as hot mess as you get. Thanks I'll take a stab at fixing it.
waldoj commentedon Jul 1, 2013
👍
Fixing #307
jathayde commentedon Aug 1, 2013
ea9aa6c
waldoj commentedon Aug 1, 2013
Woo!
krusynth commentedon Mar 11, 2015
It's back with a vengeance. I tried upping the margin width to 150px but it's still not enough. We might want to make this a gasp table.
http://chicagocode.org/18/
waldoj commentedon Mar 11, 2015
grumble grumble
No, you're right. Table it is.
krusynth commentedon Mar 11, 2015
Pics or it didn't happen.
krusynth commentedon Mar 11, 2015
Also, look it's #574 happening too.
waldoj commentedon Mar 11, 2015
For the record, I do much prefer providing this data as a definition list, semantically, but there's a point when you've just got to be realistic. The fact is that there's bulk data and an API—nobody needs to be scraping these records. This isn't really tabular data, but it's not not tabular data. Tables are such a sensible solution that I think it's the way to go.
Replace list of laws/structures with table. Fixes #307
Merge pull request #673 from statedecoded/issue-307