Skip to content

Commit

Permalink
Remove Read more button in page decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
jrlarano committed May 18, 2024
1 parent 19ca3c9 commit c3d7f0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/kits/paged-publication/hotspots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,8 @@ function renderHotspot(hotspot, position, contentRect, boundingRect) {
`;
} else if (hotspot.link) {
el.innerHTML = `
<a href="${
hotspot.link
}" class="sgn-pagedecoration-hotspot-link" rel="noreferrer noopener" target="_blank">
<div class="sgn-pagedecoration-hotspot-link-content" style="width:100%;height:100%;">
<div class="sgn-pagedecoration-hotspot-link-label">
${translations.t(
'paged_publication.hotspot_picker.pagedecoration.link'
)}
</div>
</div>
<a href="${hotspot.link}" class="sgn-pagedecoration-hotspot-link" rel="noreferrer noopener" target="_blank">
<div class="sgn-pagedecoration-hotspot-link-content"></div>
</a>
`;
}
Expand Down
2 changes: 2 additions & 0 deletions lib/kits/paged-publication/viewer.styl
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@
display flex
align-items flex-end
padding 0.5rem
width 100%
height 100%

&:hover
background-color rgba(#fff, 0.1)
Expand Down

0 comments on commit c3d7f0a

Please sign in to comment.