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

Wrap long file names in fileset and work show page #3332

Merged
merged 3 commits into from
Oct 23, 2018
Merged

Conversation

VivianChu
Copy link
Contributor

Fixes #1275

Wrap long file names without spaces fit the layout.

Here's the screen shot of before and after the change

Before
beforewrapfilename
beforefileset

After
afterwrapfilename
afterfileset

@samvera/hyrax-code-reviewers

@@ -18,7 +18,12 @@ header > h1 .label {
padding: $panel-body-padding;
}

.relationships,
.attribute-filename,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using id selectors

@no-reply
Copy link
Contributor

This looks great! Do you have thoughts about how to respond to the issue flagged by Hound?

@VivianChu
Copy link
Contributor Author

@no-reply - I'm having problem running bundle install for this branch after rebase with master branch and run the command rm -rf .internal_test_app Gemfile.lock . I'm working on it and will try to update css to avoid id selector. I'll keep you posted. Thanks for reviewing.

@VivianChu VivianChu changed the title Wrap long file names in fileset and work show page [WIP] Wrap long file names in fileset and work show page Oct 15, 2018
td:first-child {
word-break: break-all;
}

.attributes {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intend to remove .relationships from this selector?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcoyne - It was a mistake. I added it back.

.relationships,
.attribute-filename,
header h1,
td:first-child {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is too generic of a selector for this. Can we make this a new class like .ensure-wrapped.

Slightly off topic, but I like how github handles situations like this:
screen shot 2018-10-17 at 11 00 33 am

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcoyne - The pages have been updated to use the new class .ensure-wrapped. Thanks for suggestion.

@VivianChu VivianChu changed the title [WIP] Wrap long file names in fileset and work show page Wrap long file names in fileset and work show page Oct 17, 2018
@no-reply no-reply merged commit a137015 into master Oct 23, 2018
@no-reply no-reply deleted the 1275-wrap-filename branch October 23, 2018 16:46
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.

5 participants