zakodium-oss / react-science

React components and tools to build scientific applications.
https://react-science.pages.dev
MIT License
3 stars 6 forks source link

New component 'SelectedTotal' #765

Closed lpatiny closed 1 month ago

lpatiny commented 1 month ago

Currently in NMRium we have 5 different ways to display the number of selected items versus the total number of entries.

We need a component to display this simple information (if it is not yet available) and the first place it should be used is:

image

I would suggest to always have [ selected / total ]. Take care that all the spaces are Thin Space (https://www.compart.com/en/unicode/U+2009)

Here is the difference between normal space and thin space

image

If selected is undefined we whould only display the total [ total ]

Once done it should be implemented in NMRium.