Skip to content

Commit

Permalink
Default for annotations in texts should be inline display
Browse files Browse the repository at this point in the history
  • Loading branch information
roewenstrunk authored and daniel-jettka committed Feb 12, 2025
1 parent a274534 commit bb7a180
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/view/window/text/TextFacsimileSplitView.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ Ext.define('EdiromOnline.view.window.text.TextFacsimileSplitView', {
var me = this;
var annos = Ext.query('#' + me.id + '_textCont span.annotation');
Ext.Array.each(annos, function(anno) {
Ext.get(anno).hide();
var a = Ext.get(anno);
a.setVisibilityMode(Ext.Element.DISPLAY);
a.hide();
});
},

Expand Down
4 changes: 3 additions & 1 deletion app/view/window/text/TextView.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ Ext.define('EdiromOnline.view.window.text.TextView', {
var me = this;
var annos = Ext.query('#' + me.id + '_textCont div.annotation');
Ext.Array.each(annos, function(anno) {
Ext.get(anno).hide();
var a = Ext.get(anno);
a.setVisibilityMode(Ext.Element.DISPLAY);
a.hide();
});
},

Expand Down
14 changes: 13 additions & 1 deletion resources/css/todo.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ body {
margin-right: 2em;
}

.textViewContent span.note::before {
content: none;
}

.textViewContent span.note::after {
content: none;
}

.textViewContent span.note div.annotation {
display: inline-block;
}

#ediromToolbar .x-btn.insetButton.x-btn-default-toolbar-small {
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #dddddd), color-stop(30%, #c3c3c3), color-stop(65%, #b8b8b8), color-stop(100%, #a0a0a0));
background-image: -webkit-linear-gradient(top, #dddddd, #c3c3c3 30%, #b8b8b8 65%, #a0a0a0);
Expand Down Expand Up @@ -93,7 +105,7 @@ span.musicalSymbol {

.ediromWindow .annotation {
z-index: 10;
display: flex !important;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
Expand Down

0 comments on commit bb7a180

Please sign in to comment.