jimallman/PhenoscapeWeb — comment on commit d5b48601a31bcecca2b57fce35da64444016c91d
File: app/views/phenotypes/_facet_item.html.erb line 1
By jimallman:

Note that I've modified the logic for n-level indentation here. Instead of prepending "spacers", we use a combination of CSS properties (`padding-left` and `text-indent`) that work better for multi-line text items. Basically, instead of wrapping the second and later lines all the way back to the left margin, this will indent them slightly under the first line. The item's children will be indented still further. You can adjust the `big_ident_ems` and `outdent_ems` to fine-tune both aspects of the indentation. A couple of good example URLs to see the effect:

http://localhost/phenotypes/facets?facet_paths[entity]=GO%3A0008150&facet_paths[taxon]=
http://localhost/phenotypes/facets?facet_paths[entity]=GO%3A0008150%2CGO%3A0071840&facet_paths[taxon]=

Please let me know if there are problems with this approach, or if it can be applied elsewhere in Phenoscapes.