Problem/Motivation
The preview button in Claro theme is not correctly displayed, the link text and icon are partially rendered on top of the image preview as shown in the following screenshot:

Steps to reproduce
Just install the module and enable the image preview.
Proposed resolution
Basic review of the preview button markup by adding the button classes and change some custom CSS rules.
Remaining tasks
Review, commit.
User interface changes
None.
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | claro_gin_preview_link-3162961-4.patch | 317 bytes | johan den hollander |
| #4 | gin.png | 100.96 KB | johan den hollander |
| #4 | claro.png | 95.97 KB | johan den hollander |
| #4 | seven.png | 85.42 KB | johan den hollander |
| #3 | Create_Article___D9_Contrib.jpg | 187.15 KB | bleen |
Comments
Comment #2
manuel.adanAfter the proposed patch:
Before in the Seven theme:
After the proposed patch in the Seven theme:
Comment #3
bleen commentedI like this, but ...
Things to think about:
Comment #4
johan den hollander commentedI came here because the preview link is not placed nicely in Claro (and Gin).
Therefore I made a simple patch, moving the link down a bit, just far enough to look good on Claro and Gin, and still looking ok for seven.
The patch adds just these two lines to .focal-point-preview-link:
Seven after patching

Claro after patching

Gin after patching

Comment #5
berdirLooks like this was fixed in #3265251: Preview link overlaps with image on Claro theme in a different way, can you confirm?
Comment #6
martijn de witSeems duplicate to #3265251: Preview link overlaps with image on Claro theme indeed.
Comment #7
berdir