CW: GalleryBlock mouseover filename new feature
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 nameshow-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.