Project

General

Profile

Actions

Defect #32156

closed

No left padding for first level entries in discussion board list

Added by Anonymous over 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Forums
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

The left padding of the table rows is hard-coded to create a tree structure through indentation. The current solution is unfortunate as it adds no padding to the first level (level-0) but overrides padding rules from table.list td in the CSS stylesheet. Because of this it is very difficult to fix this flaw in themes. It also makes customization nearly impossible without touching the code.


Files

Actions #1

Updated by Anonymous over 4 years ago

Edit: don't review it just yet, I overlooked the parent/child indentation, I will update the patch to fix this, to avoid hacky behavior like now.

Actions #2

Updated by Anonymous over 4 years ago

Adding the fixed one now :)
Edit: actually, I already came up with even better alternative for this, and it could be bare CSS indentation with minor changes to the view, I'll post another version some time next week.

Actions #3

Updated by Bernhard Rohloff about 3 years ago

I changed the tracker and description of the issue to clarify the problem and to make clear that this is a bug, not a feature.

The prior patches have the disadvantage, that it's still not easy to change the table padding in this view. I've attached a new patch which replaces the padding-left property with the, in this case, more appropriate text-indent property. The padding is now consistent with the other list views and can be modified in themes.

It's a paper-cut and I think we can easily fix it in 4.2.0, can't we?

Actions #4

Updated by Go MAEDA about 3 years ago

Thank you for posting the patch but I found a UI issue caused by 'text-indent'.

When the board description is very long, the second line is not indented.

Actions #5

Updated by Bernhard Rohloff about 3 years ago

Go MAEDA wrote:

Thank you for posting the patch but I found a UI issue caused by 'text-indent'.

When the board description is very long, the second line is not indented.

Thank you Go for pointing it out. That really doesn't look right. I took a second look on the problem. Right now, we have two different approaches to show indentation in a table cell. In the projects and issues table it's solved by adding CSS classes. It's in my opinion the proper solution because it doesn't use inline styles at all. The downside is, that it's not dynamically calculated and therefore the levels of indentation have to be covered in the CSS stylesheet. The current styles cover structures which can be up to 9 layers deep. That should be more than enough in nearly all cases. I also like the additional arrow which is a common symbol for nested structures across the application.

Attached is another patch which implements this indentation method for the forum index view. I also cleaned up the indentation styles for issues and projects lists to make them less specific to this sorts of tables.

Actions #6

Updated by Marius BĂLTEANU about 3 years ago

The patch looks good to me.

Actions #7

Updated by Marius BĂLTEANU about 3 years ago

  • Status changed from New to Confirmed
Actions #8

Updated by Go MAEDA about 3 years ago

  • Category changed from UI to Forums
  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix. Thank you.

Actions

Also available in: Atom PDF