Skip to content

CW: GalleryBlock mouseover filename new feature

Farbod Zamani requested to merge tic-1742 into main

This MR fixes #1742 (closed)

Description:

The filenames were displayed always in the bottom section of the gallery block content. With this new feature, lecturers are now able to define a new parameter to make the filenames appear when the mouse cursor moves over the block content.

How it works.

  • CW Gallery Block now gets a new property in its payload called mouseover_filenames
  • A new setting appears in the edit section when the currentShowFileNames has the true value.
  • if the currentMouseoverFileNames (e.g. mouseover_filenames prop) is enabled (true), then it will give add a class name show-on-hover to the div that is responsible to present the filename.
  • with the use of css (e.g. scss) attribute of :hover on the .cw-block-gallery-content:hover, it then displays the filename when the mouse moves over the content.

Merge request reports