dspace-angular icon indicating copy to clipboard operation
dspace-angular copied to clipboard

Admin sidebar icons hide part of the label text

Open tinsch opened this issue 5 months ago • 3 comments

Describe the bug

The admin sidebar icons partially hide the accompanying label. Can be observed on the DSpace sandbox page and is also locally reproducible on current main. Image

To Reproduce

Steps to reproduce the behavior:

  1. Login as an admin user and observe the sidebar

Expected behavior

The label text should be completely readable.

tinsch avatar Jun 24 '26 15:06 tinsch

@tinsch : Could you add details about what browser & OS you are using? I cannot reproduce this behavior on https://sandbox.dspace.org in Chrome or Firefox (on Windows). Therefore, I suspect this is potentially a browser-specific bug.

Here's how it looks for me on Chrome:

Image

tdonohue avatar Jun 24 '26 16:06 tdonohue

I saw it on Firefox on MacOS, on an external screen. Can't reproduce it now though, weird. I will close this ticket for now and reopen it once I see it again.

tinsch avatar Jun 24 '26 17:06 tinsch

I encountered this issue again with my office computer setup. I use a Mac with an external screen (Thinkvision t24m-29, 1920x1080 resolution), and the problem occurs in Firefox, but not in Chrome. Adding a padding-left: var(--ds-admin-sidebar-item-padding); to the sidebar-item fixed the issue, but I would encourage other people first to try out if they can reproduce the bug before I open a PR.

tinsch avatar Jul 01 '26 11:07 tinsch

@tinsch I can reproduce this issue on MacOS in Firefox:

Image

I quickly tested your solution, and would not recommend this approach. Since this also enlarges the gap on other browsers: Firefox: Image

Chrome: Image

sandbox.dspace.org on Chrome: Image

The underlying issue seems to be that Firefox handles the scrollbar width differently than other browsers. There already seems to be a solution implemented for windows here: https://github.com/DSpace/dspace-angular/blob/main/src/app/admin/admin-sidebar/admin-sidebar.component.scss#L143 So something similar might be needed for macOS.

bram-maegerman avatar Aug 21 '26 13:08 bram-maegerman

@bram-maegerman thanks for testing and validating the issue. If you provide a fix I can review and test it!

tinsch avatar Aug 24 '26 08:08 tinsch

@tinsch I provided a fix for this issue in #6118.

bram-maegerman avatar Aug 27 '26 11:08 bram-maegerman