Skip to content

Commit

Permalink
Merge pull request #105 from cu-mkp/dev
Browse files Browse the repository at this point in the history
Fixing watermark pane width and glossary scroll
  • Loading branch information
ajolipa authored Apr 23, 2024
2 parents a54daa2 + a892f4b commit fcf9234
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion editioncrafter-umd/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cu-mkp/editioncrafter-umd",
"version": "0.2.10",
"version": "0.2.11",
"homepage": "https://cu-mkp.github.io/editioncrafter/",
"description": "A simple digital critical edition publication tool",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion editioncrafter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cu-mkp/editioncrafter",
"version": "0.2.10",
"version": "0.2.11",
"description": "A simple digital critical edition publication tool",
"homepage": "https://cu-mkp.github.io/editioncrafter/",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion editioncrafter/src/component/Watermark.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Navigation from './Navigation';
import Pagination from './Pagination';

const Watermark = ({ side, documentView, documentViewActions }) => (
<div style={{ position: "relative" }}>
<div style={{ position: "relative" }} className="watermarkContainer">
{ documentView.left.iiifShortID !== '-1' && documentView.right.iiifShortID !== '-1'
? <Navigation side={side} documentView={documentView} documentViewActions={documentViewActions} />
: null}
Expand Down
1 change: 0 additions & 1 deletion editioncrafter/src/scss/_glossary.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#glossaryView {

#glossaryViewInner {
overflow-y: scroll;
margin: 5px 0 0 0;
@include md {
margin: 52px 0 0 0;
Expand Down
8 changes: 6 additions & 2 deletions editioncrafter/src/scss/_watermark.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
$watermark-size: max(10rem, 160px);

.watermarkContainer .navigationComponent {
position: absolute;
}

.watermark{
width:100%;
height:100%;
margin: calc(50vh - (#{$watermark-size}/2)) auto 0 auto;
margin: calc(50% - (#{$watermark-size}/2)) auto 0 auto;
}
.transcriptContent .watermark{
margin: calc(50vh - (25rem/2)) auto 0 auto;
margin: calc(50% - (25rem/2)) auto 0 auto;
}

.watermark_contents{
Expand Down

0 comments on commit fcf9234

Please sign in to comment.