Fix: Improve footer responsiveness and download button on the full item page#4218
Fix: Improve footer responsiveness and download button on the full item page#4218tdonohue merged 10 commits intoDSpace:mainfrom jesielviana:fix-footer-responsiveness
Conversation
tdonohue
left a comment
There was a problem hiding this comment.
@jesielviana : Thanks for this PR! I reviewed and tested it today. Overall, the entire PR looks good, and I've verified that it fixes the two main layout issues...the one with the footer at 390px, and the one on the "Full item page" with the download buttons at 390px.
I noticed though that it also changes the download file links to be buttons like this:

I wanted to call that out simply because I didn't see it mentioned in the title or description of this PR. But, it looks like that change is intentional, and I don't mind the new look. I just had a minor note on it below.
Overall though, I'm a +1 on this PR. I may want to run the new download button look past some other developers to ensure no one else sees an issue with that, but it looks good to me.
|
Thanks @jesielviana , improvements to responsiveness are always welcome! Regarding the buttons and layout, I personally prefer the plain links if we're just displaying an unstructured list with badges and href... but I do like the idea to make the download / file elements more prominent. I think the buttons could be improved by:
Maybe making use of a flex div, or something more table-like, could help. As it is, to me it looks a little bit cluttered.. less like functional "buttons" and more like variable-width divs with borders. (Does it perhaps look tidier in different screen sizes? I'll have to check some cases) |
|
@jesielviana : For what it's worth, I like @kshepherd 's idea (his first bullet) to potentially just add a square download button next to each filename and display the filenames as links or text again. But, I almost feel like we'd need a couple mockups of how this might look in order to choose the "best" one. To that point, I also want to note that we could also consider undoing the changes you've made to the file listing on the simple Item page, and treat that as a separate PR (to give us more time to come up with a better look). The changes you've made in this PR to the footer and the full item page are non-controversial, in my opinion, and could be merged more immediately. |
|
Thanks @tdonohue and @kshepherd for your contributions. I agree with your points and will follow @tdonohue's suggestion to revert the changes to the Download button on the simple Item page. |
|
If we want to draw attention to the list-ness of the file controls, we could simply give the list a 1px or 2px border. The badges are a complication for the list members. Short rules between them should delimit them effectively. Or the list could be done with alternating soft background colors, which would handle both. See also https://dspace-org.slack.com/archives/C3SG47SGY/p1746042279227259 ff. |
|
Hi @jesielviana, |
|
@jesielviana : I believe the merge conflicts here are accidentally caused by the merger of #4244. If you can get those conflicts resolved though, I'll gladly give this another review/test to ensure your recent updates look good. |
|
@tdonohue : Thanks for the heads-up! I’ve resolved the merge conflicts — this should be ready for another review now. |
tdonohue
left a comment
There was a problem hiding this comment.
@jesielviana : Tested & reviewed this again today. I've verified that the default Item page changes are now reverted & the download links are restored. The other functionality still works as well, but I ran into a minor bug on the "Full Item Page"
If you have an embargoed bitstream, on the "Full Item Page" it will show both a lock icon and a download icon. Here's what it looks like:
In that scenario, I'd recommend replacing the download icon with the lock icon, rather than showing the two icons next to each other.
Beyond that, everything else in this PR looks good.
|
Thanks @tdonohue for the thorough re-test and detailed feedback! You're absolutely right — showing both the lock and download icons for embargoed bitstreams on the Full Item Page is confusing. I've updated the logic so that only the lock icon is shown in that scenario. The fix has been pushed — feel free to take another look and let me know if you notice anything else! |
tdonohue
left a comment
There was a problem hiding this comment.
@jesielviana : Thanks for the updates. I tested it again, and the "Full Item Page" issue is fixed. But, now I'm seeing download icons next to all files on the main Item Page like this:
Was this change intentional? To be honest, I don't mind that look, but the "Primary" label now looks oddly squished up against the download icon. If we wanted to stay with this look, then the "Primary" label may need to be moved after the filename or similar.
If this change was not intentional, then it's also fine to remove it. I was just confused by it when I tested this PR, as that download icon wasn't there before your last modification.
|
That wasn’t intentional — sorry about that! I’ll make the change right away. |
|
@tdonohue I’ve just pushed a fix for the issue. This change introduces a boolean field in
Apologies for the inconvenience, and thanks again for your feedback! |
tdonohue
left a comment
There was a problem hiding this comment.
@jesielviana : Thanks for your hard work on this. It's looking great overall now, but I've still noticed a few minor issues we may want to clean up:
- On the Full Item Page, if you shrink the screen size (390px or similar), then any "Embargo until [date]" labels will be cut off. This was shown also in the screenshot of original ticket #4170, so we should clean it up. Here's how it looks in this PR:
- This is really minor, but I notice if you hover over one of those lock icons for an embargoed bitstream, you'll still see the title "Download [filename]". We might want to consider changing it to be "Request copy of [filename]", as clicking the icon will send you to the "Request Copy" form. This could be optional though, as it's very minor.
|
@tdonohue, thanks for the feedback! I fixed these issues by doing the following:
|
…pace-angular into fix-footer-responsiveness
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @jesielviana ! This all looks good to me now. I've tested and all the issues look to be resolved. The code looks good as well. I'm waiting on one last automated test to finish completion & then I'll merge this.
As noted in the original ticket, I think we should port this also to dspace-8_x. I'll see if the automatic backport works (triggered by the port to dspace-8_x label) once we merge this, or if we'll need a manual backport.
|
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-4218-to-dspace-8_x origin/dspace-8_x
cd .worktree/backport-4218-to-dspace-8_x
git switch --create backport-4218-to-dspace-8_x
git cherry-pick -x 84437149132498f59b75cf9b4a3b345a692b395c 4dd756a9c5a019d5405f1b123b316a3a030b4ab1 88e8251d741a9b3cf137dd7ebb8c1b4328fccdfe 21a54e97168099a2902d7b85fc501178478490a6 1496b3de2d33ff37f2882e2400200fb005a6ebfe 37ff8b1fca8d7d94e703c46f49a5eba1522dc8b5 a617b752bbd7bd40880e5310d51a26e86f06805e 72203966fc4264bc5e9f9ed2ae1128fa7df47323 |
|
@jesielviana : The automated backport to 8.x failed (see above). Would you be able to manually backport this to the |
Task/dspace cris 2025 02 x/DSC-2624 Approved-by: Francesco Molinaro



References
Description
Improved footer responsiveness across all pages by adjusting the COAR Notify position on mobile, and enhanced the download link responsiveness on the full item page.
Instructions for Reviewers
List of changes in this PR:
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
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.