From a084d7fe99b725a643912e61d46826abb286f074 Mon Sep 17 00:00:00 2001 From: soufiane Date: Mon, 23 Feb 2026 11:04:19 +0100 Subject: [PATCH] wip #7913 @0:30 --- images/symbols/interface.svg | 4 ++++ js/libs/fluidbook/fluidbook.links.js | 8 +++++++- style/links.less | 15 ++++++++++----- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/images/symbols/interface.svg b/images/symbols/interface.svg index 14b058b1..341cb00f 100644 --- a/images/symbols/interface.svg +++ b/images/symbols/interface.svg @@ -401,4 +401,8 @@ + + + + diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 156228d9..0dd66f39 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -1085,7 +1085,13 @@ FluidbookLinks.prototype = { setIconAltTextLink: function () { const links = $("[data-type=52]"); links.each(function(el) { - $(this).html(getSpriteIcon('nav-help')) + let iconPosX = $(this).attr('data-icon-x'); + let iconPosY = $(this).attr('data-icon-y'); + + $(this).find('.infos').html(getSpriteIcon('icon-info')).css({ + 'left': 'calc('+iconPosX +'% - '+ $(this).find('.infos').width() + 'px)', + 'top': 'calc('+iconPosY +'% - '+ $(this).find('.infos').height() + 'px)' + }) }) }, } diff --git a/style/links.less b/style/links.less index 62661335..bdcdd08a 100644 --- a/style/links.less +++ b/style/links.less @@ -335,13 +335,18 @@ } } - &[data-type='52'] { + &[data-type='52'] .infos { background-color: #fff; - width: 20px; - height: 20px; + width: 40px; + height: 40px; position: absolute; - right: 0; - bottom: 0; + display: grid; + place-items: center; + + svg { + width: 25px; + height: 25px; + } } } -- 2.39.5