Skip to content

Commit

Permalink
Annotations: use grid layout to avoid mouse selection issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmm committed Jan 31, 2024
1 parent 58647b5 commit d7c17d3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 53 deletions.
77 changes: 26 additions & 51 deletions resources/css/annotate.css
Original file line number Diff line number Diff line change
Expand Up @@ -471,16 +471,25 @@ fx-fore #markupPanel pb-tabs{
height: 100%;
}

pb-page {
height: 100vh;
display: grid;
grid-template-areas:
"menu menu"
"toolbar toolbar"
"main aside";
grid-template-rows: auto auto 1fr;
grid-template-columns: 1fr auto;
position: relative;
}

.text {
grid-area: main;
overflow: auto;
display: flex;
flex-direction: column;
}

main .text {
margin-top: 0;
}

pb-authority-lookup {
max-height: 60vh;
padding:0.5rem;
Expand All @@ -500,73 +509,32 @@ pb-authority-lookup::part(output) ul{
pb-document{
display: none;
}
pb-page{
display: block;
/*
display: grid;
grid-template-areas: "menu "
"toolbar"
"textview";
grid-template-columns: auto 30rem;
*/
position: relative;
}
/*
pb-page > app-toolbar.menubar{
grid-area: menu;
height: 4rem;
position:fixed;
width: 100%;
top:0;
}
*/

pb-page > app-toolbar.menubar {
grid-area: menu;
height: 4rem;
position: fixed;
width: calc(100% - 1rem);
top: 0;
padding: 0 1rem;
left: -0.5rem;
z-index: 100;
}

pb-page > header.header-toolbar{
grid-area: toolbar;
position:fixed;
top:4rem;
}

main .toolbar {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
background-color: var(--pb-color-inverse);
}
pb-page > main{
grid-area:textview;
height: 100vh;
margin-top: 128px;
display: grid;
grid-template-columns: 1fr var(--annotation-aside-width);
background: #ddd;
}

pb-page > main .text{
/*min-width: 58rem;*/
pb-page aside {
grid-area: aside;
overflow: auto;
margin-top:8rem;
background: white;
scroll-margin-top: 128px;
padding-bottom: 25vh;
}

pb-page aside{
position: fixed;
right: 0;
top: 128px;
/* height: calc(100vh - 128px); */
min-width: var(--annotation-aside-width);
width: 35vw;
background: #efefef;
height: 100vh;
border-top: solid 2px #ddd;
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
0 1px 8px 0 rgba(0, 0, 0, 0.12),
Expand Down Expand Up @@ -721,6 +689,13 @@ paper-icon-button[data-type="edit"] {
height: 100%;
}

#d-review .toolbar {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
background-color: var(--pb-color-inverse);
}

#d-review h3 {
margin: 0;
}
Expand Down
2 changes: 0 additions & 2 deletions templates/pages/annotate.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
</span>
<pb-progress subscribe="transcription" indeterminate="indeterminate"/>
</header>
<main>
<div class="text">
<pb-view id="title-view1" src="document1" xpath="//teiHeader/fileDesc/titleStmt/title" view="single">
<pb-param name="header" value="short"/>
Expand Down Expand Up @@ -351,7 +350,6 @@
</fx-fore>

</aside>
</main>
<paper-dialog id="ner-dialog">
<paper-dialog-scrollable>
<h2><pb-i18n key="annotations.ner.title">Named Entity Extraction</pb-i18n></h2>
Expand Down

0 comments on commit d7c17d3

Please sign in to comment.