Skip to content

Social Links feature doesn't display on Item pages which do not scroll #5310

@tdonohue

Description

@tdonohue

Describe the bug

Discovered in testing of #5112. The Social Links hover-over bar will only appear on pages that require scrolling. This is usually not an issue for homepages and similar.

However, if you have an Item page which doesn't scroll (i.e. it has less metadata and is smaller vertically) then it's not possible to get the Social Links to display unless you make your window smaller (to make a scrollbar appear).

To Reproduce

Steps to reproduce the behavior:

  1. Enable the Social Links feature added in [DSpace-CRIS] Share links via social networks #5112
    addToAnyPlugin:
      socialNetworksEnabled: true
    
  2. Create (or locate) an Item whose Item page doesn't scroll. For example, create an Item that has minimal metadata (e.g. just a title, single author and date)
  3. Browse to that Item's page. Notice the Social Links bar does not appear at the bottom of the page.
  4. Now resize your browser window so that it is smaller vertically. This will cause a scrollbar to appear.
  5. Scroll the window and the Social Links bar will now appear.

Expected behavior

Ideally, this bar should be visible on all pages, or there should be a button available to make it appear (if hidden because of a lack of a scrollbar). Having it appear only if a scrollbar exists is inconsistent behavior.

Related work

This feature was first added in #5112

Metadata

Metadata

Labels

DSpace-CRIS mergerThis ticket/PR relates to the merger of DSpace-CRIS into DSpace.bugcomponent: Item(Archived) Item display or editingusability

Type

Projects

Status

🏗 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions