Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236374 - Rendering of lists in news items is ugly
Summary: Rendering of lists in news items is ugly
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://www.gentoo.org/foundation/en/m...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-01 17:54 UTC by Roy Bamford
Modified: 2008-09-28 13:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
2008-09-01-232657_775x655_scrot.png (2008-09-01-232657_775x655_scrot.png,98.95 KB, image/png)
2008-09-01 21:28 UTC, Jeroen Roovers (RETIRED)
Details
test1-clear-css.jpeg (test1-clear-css.jpeg,63.04 KB, image/jpeg)
2008-09-03 15:33 UTC, Jose Luis Rivero (yoswink) (RETIRED)
Details
test2-padding-hack.jpeg (test2-padding-hack.jpeg,76.86 KB, image/jpeg)
2008-09-03 15:34 UTC, Jose Luis Rivero (yoswink) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Bamford gentoo-dev 2008-09-01 17:54:15 UTC
List items flow around the image, destroying the indent and the look of agendas in particular which are both news items and topic lists.

Reproducible: Always

Steps to Reproduce:
1.Click on sample URL above
2.Observe list elements flowing around the graphic.
3.

Actual Results:  
Works as expected.


We need a way to :- 
a) turn the graphic off.
b) start any list rendering below the graphic
c) a whole new template for agendas which does not have this problem
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-01 21:28:03 UTC
Created attachment 164294 [details]
2008-09-01-232657_775x655_scrot.png
Comment 2 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2008-09-03 15:32:37 UTC
I see several approaches to try to 'fix' this issue. The problem resides in the design of gentoo news items and the using of list elements with it. All our items have an image associated with its category. The image is displayed in the top left corner and the text around the image.

Talking in CSS, the image is floating left and the text is adjusting around the image. When the text is a list, the elements starts in different positions depending on the image position. Possible solutions could be:

1. Stop using list items in the news.
Probably something the people don't like, lots of news with lists lately.

2. Allow news item to not display an image
Some xsl trickery to disable the image in the news item. This goes against all other news items until now, all of them have an image.

3. Make the list jump the image and start below
clear:left for list in items news can do the trick (see test1). Problem is that sometimes the space leaving before the list could be too big. This will need some more testing anyway.

4. Make the list items to start after the image
tricky and dirty. Using padding we can make all list items to start after the image (see test2). Another problem of this approach is that all lists in the news will suffer the same effect even if they are under the image.

Not sure about the way we want to go, but most of them present serious issues.
Comment 3 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2008-09-03 15:33:45 UTC
Created attachment 164494 [details]
test1-clear-css.jpeg

clear:left test implementation.
Comment 4 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2008-09-03 15:34:35 UTC
Created attachment 164495 [details]
test2-padding-hack.jpeg

dirty padding hack
Comment 5 Xavier Neys (RETIRED) gentoo-dev 2008-09-28 13:31:49 UTC
.news ul {display:table;} 
.news ol {display:table;}

seems to do the trick.