From: Vincent Vanwaelscappel Date: Wed, 3 Jan 2024 10:18:00 +0000 (+0100) Subject: wait #6581 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=34da93b8cd49929852ef9acb62e9e16bbc8af737;p=fluidbook-html5.git wait #6581 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 1f73004e..fb4cc89a 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -659,6 +659,8 @@ FluidbookLinks.prototype = { } } + $("#background .links .bookmark").remove(); + if (leftLinks) { this.setLinksInContainer(leftPage, 'left'); } @@ -739,7 +741,13 @@ FluidbookLinks.prototype = { container.addClass('empty'); } if (this.fluidbook.settings.bookmark) { - container.append(this.fluidbook.bookmarks.getBookmarkForPage(page, this.fluidbook.displayOnePage, this.fluidbook.settings.bookmarkPermanentIcon)); + let b = this.fluidbook.bookmarks.getBookmarkForPage(page, this.fluidbook.displayOnePage, this.fluidbook.settings.bookmarkPermanentIcon); + if (this.fluidbook.settings.bookmarkPosition === 'page') { + container.append(b); + } else { + $('#background .links').append(b); + } + } }, diff --git a/style/bookmarks.less b/style/bookmarks.less index 88fb3b01..b5805fee 100644 --- a/style/bookmarks.less +++ b/style/bookmarks.less @@ -57,6 +57,21 @@ a.bookmark { opacity: 1 !important; transition: none; } + + #background .links & { + width: @bookmark-corner-size; + height: @bookmark-corner-size; + background-size: @bookmark-corner-size @bookmark-corner-size; + top: @menu-height; + + &.left { + left: @bookmark-corner-offset; + } + + &.right { + right: @bookmark-corner-offset; + } + } } .bookmark.left { diff --git a/style/fluidbook.less b/style/fluidbook.less index 0553a047..aae19aa7 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -937,6 +937,7 @@ body, html { header { position: relative; z-index: 13; + height: @menu-height; // Header should sit above help overlay when it is open .help & {