Skip to content

Commit

Permalink
Annotations: fix CSS layout issue and translations
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmm committed Jan 24, 2024
1 parent b470c6c commit 4c12e12
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
7 changes: 6 additions & 1 deletion resources/css/annotate.css
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ paper-icon-button[data-type="edit"] {

#d-review div.dialog-content {
display: grid;
grid-template-rows: auto auto 1fr;
grid-template-rows: auto auto 1fr auto;
height: 100%;
}

Expand All @@ -668,6 +668,11 @@ paper-icon-button[data-type="edit"] {
display: flex;
}

#d-review footer {
font-size: var(--pb-footnote-font-size);
text-align: right;
}

/* ### authority editor */
fx-repeat{
margin-right:1rem;
Expand Down
14 changes: 10 additions & 4 deletions templates/pages/annotate.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@
<header>
<div><pb-i18n key="annotations.occurrences">Occurrences in text</pb-i18n></div>
<div>
<paper-icon-button id="mark-all" icon="icons:done-all" data-i18n="[label]annotations.apply-all" data-shortcut="⌘+option+a,ctrl+alt+a"></paper-icon-button>
<paper-icon-button id="search-collection" icon="icons:search" data-i18n="[label]annotations.apply-all" data-shortcut="⌘+option+a,ctrl+alt+a"></paper-icon-button>
<paper-icon-button id="save-all" icon="icons:find-replace" data-i18n="[title]annotations.save-all"></paper-icon-button>
<paper-icon-button id="mark-all" icon="icons:done-all" data-i18n="[title]annotations.apply-all" data-shortcut="⌘+option+a,ctrl+alt+a"></paper-icon-button>
<paper-icon-button id="search-collection" icon="icons:search" data-i18n="[title]annotations.search-other" data-shortcut="⌘+option+a,ctrl+alt+a"></paper-icon-button>
<paper-icon-button id="save-all" icon="icons:find-replace" data-i18n="[title]annotations.save-other"></paper-icon-button>
</div>
</header>
<p class="messages"></p>
Expand Down Expand Up @@ -381,14 +381,20 @@ <h2><pb-i18n key="annotations.ner.title">Named Entity Extraction</pb-i18n></h2>
<h3>
<paper-icon-button class="close" dialog-confirm="dialog-confirm" icon="icons:close"
data-i18n="[title]dialogs.close"></paper-icon-button>
[<pb-i18n key="annotations.doc-count" options='{"count": 0, "total": 0}'></pb-i18n>] <a href="#" target="_blank"></a>: <span class="count"></span>
[<pb-i18n key="annotations.doc-count" options='{"count": 0, "total": 0}'></pb-i18n>]
<a href="#" target="_blank" data-i18n="[title]annotations.hints.open-in-tab"></a>: <span class="count"></span>
</h3>
<header class="toolbar">
<paper-icon-button icon="icons:chevron-left" class="previous"></paper-icon-button>
<paper-icon-button class="save-current" icon="icons:save" data-i18n="[title]annotations.save"></paper-icon-button>
<paper-icon-button icon="icons:chevron-right" class="next"></paper-icon-button>
</header>
<ul></ul>
<footer>
<mark class="modify">&#x2003;</mark> <pb-i18n key="annotations.hints.modify"></pb-i18n>;
<mark class="incomplete">&#x2003;</mark> <pb-i18n key="annotations.hints.incomplete"></pb-i18n>;
<mark>&#x2003;</mark> <pb-i18n key="annotations.hints.unmarked"></pb-i18n>
</footer>
</div>
</dialog>
</pb-page>
Expand Down

0 comments on commit 4c12e12

Please sign in to comment.