Resize table to match columns

#5
by lewtun HF staff - opened
Evaluation on the Hub org

The current leaderboard seems to have a fixed width, so we end up with blank space when there's only 1-2 metrics available:

Screen Shot 2022-06-17 at 15.31.03.png

It would be cool if we could somehow dynamically resize either the columns or the table to avoid this. Not urgent at all - just a cosmetic suggestions

Evaluation on the Hub org

I think this is a limitation with the AggGrid plugin. One idea would be to use native Streamlit tables, but AFAIK, those don't allow one to search / filter by model ID which is quite handy

Updated. Let me know what you think. There are some functions in aggrid that allow dynamic resizing but they are a little limited.

Evaluation on the Hub org

Looks great, thanks!

lewtun changed discussion status to closed

Sign up or log in to comment