GeoNode / geonode-mapstore-client

MapStore Client for GeoNode
http://geonode.org/geonode-mapstore-client/master
Other
15 stars 109 forks source link

No linebreak in DetailsPanel #1854

Open ridoo opened 2 months ago

ridoo commented 2 months ago

Describe the bug

On Firefox, long lines of attributes within the Detailspanel do not break. Detailspanel shows an horizontal scrollbar instead. This is different from Chrome.

Firefox:

image

Chrome is ok:

image

Expected Behavior

Lines break the same way as in Chrome Browser

Steps to Reproduce the Problem

  1. Open a dataset having attributes with long lines (browser resize does not resize the detail panel)
  2. Open details panel (firefox)
  3. Open details panel (chrome)

Specifications

ridoo commented 1 month ago

@kilichenko-pixida could you please have a look into it

kilichenko-pixida commented 1 month ago

@ridoo It seems like the poblem is not with long lines of attributes per se, but specifically with keywords, because they are links. If the title is very long, it seems to wrap around just fine in Firefox as well. And as for the keywords, adding the following css makes it work both in Chrome and Firefox:

.gn-details-info-value > a { display: inline-block; }

My guess is that this particular element styling isn't specified explicitly and Chrome and Firefox just have different default display modes. Unfortunately, I wasn't able to figure out how to actually make changes to front-end and would require some help to actually apply the change.

kilichenko-pixida commented 1 week ago

Created a PR for it.

ridoo commented 1 day ago

@gannebamm still an issue or did you re-open this one by accident?

gannebamm commented 1 day ago

@ridoo It is fixed in our fork, but I haven't tested it on master, yet