Fix irregular whitespace for MetadataRepresentationListComponent#5665
Conversation
nathanmlf
left a comment
There was a problem hiding this comment.
Hey @alexandrevryghem! I've tested it on my side and everything seems to be working as expected. I will attach some screenshots below for comparison:
One author test (Sandbox):
One author test (PR-5665):
Ten authors test (Sandbox):
Ten authors test (PR-5665):
Nice job with the improvement!
There was a problem hiding this comment.
@alexandrevryghem : I'm finding that this PR fixes some things, but makes other displays slightly worse??
For example, here's what I see for the same Publication on http://sandbox.dspace.org (without this PR), and on my local machine (with this PR) and on my local machine without this PR.
The Sandbox display looks the best. The behavior with this PR looks decent, but doesn't work if an author has an ORCID next to it. If I remove your PR from my local machine, then authors are jumbled (which doesn't look great either). I'm trying to figure out why I'm seeing three different displays, but it must be based on which features are enabled.
Sandbox display: (See https://sandbox.dspace.org/entities/publication/f3edcd34-ed72-43eb-9594-77c206636540)
This PR's display:
My local machine without this PR:
Overall, this PR seems like it's an improvement, but it's a bit buggy if the authors have an ORCID identifier.
Finally, I did want to note that this PR seems to be a fix for #5519 (which is the bug you see in my local display above) and therefore seems to have an overlap with #5540
…ntationListComponent_contribute-9.0' into w2p-141473_fix-irregular-whitespace-for-MetadataRepresentationListComponent_contribute-main
d478340 to
cc05cfb
Compare
|
@tdonohue: Thnx for the review! Sorry about that PR conflict I didn't know an issue was already submitted for that 😬. I fixed the issue you mentioned, I also noticed that the project items like this one had the same issue for the NOTE: to easily test it I updated the <ds-metadata-representation-list
[parentItem]="object"
[itemType]="'OrgUnit'"
[metadataFields]="['project.contributor.other', 'dc.contributor.other']"
[label]="'project.page.contributor' | translate">
</ds-metadata-representation-list> |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @alexandrevryghem ! This now works well. The prior issues have been corrected. Code looks good too.
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-7_x
git worktree add -d .worktree/backport-5665-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-5665-to-dspace-7_x
git switch --create backport-5665-to-dspace-7_x
git cherry-pick -x 7d1341e4d2a3f03d8515bce1f289c64506a23ec3 |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-8_x
git worktree add -d .worktree/backport-5665-to-dspace-8_x origin/dspace-8_x
cd .worktree/backport-5665-to-dspace-8_x
git switch --create backport-5665-to-dspace-8_x
git cherry-pick -x 7d1341e4d2a3f03d8515bce1f289c64506a23ec3 |
|
Successfully created backport PR for |
|
@alexandrevryghem : This was only able to be backported automatically to 9.x. But, then again, I've only seen this misalignment in more recent versions, so I'm not confident this same bug exists in 8.x or 7.6.x. Nonetheless, if you want to backport it further, please create separate PR(s) against those branches. |
|
@alexandrevryghem : I just noticed that after merging this PR, the "startsWith" links on Authors has been removed from the Sandbox site. For instance, take a look at this same Item on the Sandbox vs the Demo site: On the Demo site, all authors are hyperlinked, and point at the "Browse by Author" link for that author. Maybe this was a small bug introduced by this PR? (I haven't merged #5722 yet, which is the backport of this PR for |
|
@tdonohue: This PR didn't introduce any Typescript changes, only layout changes, so that bug is unrelated. I tested PR #5722 locally against https://demo.dspace.org as well and all the authors are still rendering as browse links so this is a separate bug or the servers might be configured differently 🤔 |
|
@tdonohue: I traced this change back to PR #4956 which replaced the |
|
@alexandrevryghem : Thanks for your investigatory work! I was a bit confused about what the cause was, but good to understand it wasn't this refactor. I must have been mistaken then that this behavior changed on Sandbox after this PR was merged. I can always log a separate bug for this issue. In any case, I'll merge the 9.x version of this PR now. #5722 |
Description
Removed the trailing whitespace below the
MetadataRepresentationListComponentwhen the page size is smaller than 10. Also reduced the spacing below the load more/hide last buttons to match the default spacing between item page fields.Instructions for Reviewers
List of changes in this PR:
mt-2spacing from the load more/hide last buttons when the page size is smaller than 10float-start&float-endstyling on the load more/hide last buttons with flex box withjustify-content: between. This will remove the additional spacing generated by the float logic underneath the buttons.Guidance for how to test and review this PR:
Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.