From 6311debdd6afbd8e16120ea5a9f95e881042df68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20R=C3=B6wenstrunk?= <roewenstrunk@uni-paderborn.de> Date: Wed, 22 Jan 2025 15:36:55 +0100 Subject: [PATCH] Annot icons in texts and annotation menu in text view --- app/view/window/text/TextView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/view/window/text/TextView.js b/app/view/window/text/TextView.js index 08c6a5364..e6e2b00ce 100644 --- a/app/view/window/text/TextView.js +++ b/app/view/window/text/TextView.js @@ -130,8 +130,7 @@ Ext.define('EdiromOnline.view.window.text.TextView', { me.annotationsLoaded = true; - var tpl = Ext.DomHelper.createTemplate('<span id="{0}" class="annotation {1} {2} {3}" data-edirom-annot-id="{3}"></span>'); - + var tpl = Ext.DomHelper.createTemplate('<div class="annotation"><div id="{0}" class="annotIcon {1} {2} {3}" data-edirom-annot-id="{3}"></div></div>'); tpl.compile(); annotations.each(function(annotation) { @@ -243,6 +242,7 @@ Ext.define('EdiromOnline.view.window.text.TextView', { me.annotMenu = Ext.create('Ext.button.Button', { text: getLangString('view.window.text.TextView_annotMenu'), indent: false, + cls: 'menuButton', menu : { items: [ me.toggleAnnotationVisibility -- GitLab