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

Text extending beyond content area in CIAT XMLUI theme #58

Closed
alanorth opened this issue Jan 29, 2015 · 2 comments
Closed

Text extending beyond content area in CIAT XMLUI theme #58

alanorth opened this issue Jan 29, 2015 · 2 comments
Assignees
Labels

Comments

@alanorth
Copy link
Member

screen shot 2015-01-28 at 9 55 40 am

I need to look at other XMLUI themes and see if this is just an issue with CIAT or what. Item in screenshot is: https://cgspace.cgiar.org/handle/10568/54615.

@alanorth alanorth added the bug label Jan 29, 2015
@alanorth alanorth self-assigned this Jan 29, 2015
@alanorth
Copy link
Member Author

We've just realized that these items look fine in Firefox, but Chrome displays like the screenshot above. Need to investigate why the text doesn't wrap there!

@alanorth
Copy link
Member Author

After a bit of tweaking, the following CSS in style.css fixes it in Chrome:

table.ds-includeSet-table {
  table-layout: fixed;
  width: 100%;
}

table.ds-includeSet-table td {
  word-wrap: break-word;
}

table.ds-includeSet-table td:first-child {
  width: 20%;
}

Basically, unless we use fixed-layout on the table, we can't set widths. Once we set the widths then we add the wrapping on word breaks. Arguably looks better in Firefox too.

selection_010

alanorth added a commit that referenced this issue Mar 23, 2015
Fix for items which have metadata elements with long rows; Chrome
doesn't wrap the text, and instead the content spills into the body.

Closes GitHub #58.

Signed-off-by: Alan Orth <a.orth@cgiar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant