Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break words in table on the record view page #5879

Merged

Conversation

MichelGabriel
Copy link
Contributor

Not all texts can be displayed on multiple lines automatically, for instance with log links without spaces and - characters. When this happens the text breaks out of the table.

This PR adds a line of css to break words inside table cells when needed.

Before:

gn-break-before

After:

gn-break-after

@fxprunayre fxprunayre merged commit aa5ba99 into geonetwork:3.12.x Jul 27, 2021
@fxprunayre fxprunayre added this to the 3.12.2 milestone Jul 27, 2021
@fxprunayre
Copy link
Member

@MichelGabriel I've some record with a bad layout for table due to this.

image

The resource identifier is not in a table in the record view, so I think we could remove word-break: break-word; unless you've another case ?

Without the break, the table looks better

image

@MichelGabriel
Copy link
Contributor Author

Yes, that table looks bad, please remove it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants