geneontology / ribbon

(DEPRECATED) Short form matrix view of all GO annotations for a given gene
BSD 3-Clause "New" or "Revised" License
4 stars 7 forks source link

Allow overriding subject labels #102

Closed paaatrick closed 4 years ago

paaatrick commented 4 years ago

Apologies for the messy diff. I guess my editor automatically removed trailing whitespace.

The main change is in GenericRibbonSubject where it now accepts a function prop (subjectLabel) which can be used to place a custom label component, overriding the default.

The changes to styles and css classes are to remove the hardcoded 180px width of the label column and instead allow it to be sized based on the actual contents.