GFDRR/open-risk-data-dashboard

Explore countries: truncate dataset reference if larger than 2 lines

Closed this issue · 7 comments

pzwsk commented
  • Truncate dataset reference (title, publisher, date) to 2 lines max with [...] at the end if longer
  • Ensure same height size for all rows

See issue below
image

pzwsk commented

Hi @CIMAManuel could you have a look at this one?

Thanks!

pzwsk commented

As per @oncletom in #377, this is only working on Chrome.

I putting back issue to In Progress.

Are you like this?! ... It's not easy because the block of subtitle_datasetlist is composed by 3 object (title + institution + modify_time) and every object may be short or longer and all may exceed 2 lines. Sure I'm try to fix just use visual html & css capabilities... Another way will be to use JS to count words or charachters...
Well this is the fix now

Firefox preview:
opendri_index_-datasets_list-2018-12-21_10 18 55 png-_2018-12-21_10 19 28

chrome preview:
5084874806132736

pzwsk commented

We pushed in the branch named "#371_trunk_over2lines" the last version of this issue.
There are some problems with Firefox yet, but we can't do better.
If you have any ideas (@pzwsk , @oncletom ).

pzwsk commented

Hi @CIMAManuel @dedandy still need to merge your fix in dev, right?

I'm happy to have a look at it.