From: Radek Czajka Date: Thu, 9 Sep 2021 11:03:49 +0000 (+0200) Subject: Fix annotations window. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/0dd00c51dfdbda93e1b9c4612477cd05109d4517?ds=inline Fix annotations window. --- diff --git a/src/redakcja/static/css/gallery.css b/src/redakcja/static/css/gallery.css index 815229cc..444ecffe 100644 --- a/src/redakcja/static/css/gallery.css +++ b/src/redakcja/static/css/gallery.css @@ -52,7 +52,7 @@ justify-content: center; } -#side-annotations .akap { +#side-annotations [x-node="akap"] { font-size: 16px; font-family: "Georgia", "Times New Roman", serif; line-height: 1.5em; @@ -74,7 +74,7 @@ width: 100%; } -#side-annotations .akap:hover .src { +#side-annotations [x-node="akap"]:hover .src { display: block; } diff --git a/src/redakcja/static/js/wiki/view_properties.js b/src/redakcja/static/js/wiki/view_properties.js index 5af43e67..63dd39de 100644 --- a/src/redakcja/static/js/wiki/view_properties.js +++ b/src/redakcja/static/js/wiki/view_properties.js @@ -46,7 +46,7 @@ self.$pane = $("#side-properties"); - $(document).on('click', '[x-node]', function(e) { + $("#simple-editor").on('click', '[x-node]', function(e) { if (!e.redakcja_edited) { e.redakcja_edited = true; self.edit(this);