diff --git a/editioncrafter/src/component/DiploMatic.js b/editioncrafter/src/component/DiploMatic.js index bab0ad0..80e82c6 100644 --- a/editioncrafter/src/component/DiploMatic.js +++ b/editioncrafter/src/component/DiploMatic.js @@ -33,7 +33,7 @@ const DiploMatic = (props) => {
-
+
} exact /> } exact /> diff --git a/editioncrafter/src/component/DocumentView.js b/editioncrafter/src/component/DocumentView.js index cc30f6a..bb3ffa4 100644 --- a/editioncrafter/src/component/DocumentView.js +++ b/editioncrafter/src/component/DocumentView.js @@ -479,7 +479,7 @@ const DocumentView = (props) => { if (isWidthUp('md', props.width) && !singlePaneMode) { return ( -
+
{ ); } return ( -
+
diff --git a/editioncrafter/src/component/Pagination.js b/editioncrafter/src/component/Pagination.js index 2c15aef..a85d206 100644 --- a/editioncrafter/src/component/Pagination.js +++ b/editioncrafter/src/component/Pagination.js @@ -31,11 +31,11 @@ class Pagination extends React.Component { }; render() { - const { side, document, documentView } = this.props; + const { side, document, documentView, bottom = false } = this.props; if( documentView[side].iiifShortID === '-1' ) return null; const folioName = document.folioIndex[documentView[side].iiifShortID].name; return ( -
+
{ const [loading, setLoading] = useState(true); const viewerRef = useRef(null); - useEffect(async () => { - if (viewerRef.current) { - await initViewer(viewerRef.current, tileSource).then(() => setLoading(false)); - } + useEffect(() => { + const loader = async () => { + if (viewerRef.current) { + await initViewer(viewerRef.current, tileSource).then(() => setLoading(false)); + } + }; + + loader(); }, []); const viewer = useMemo(() => ( diff --git a/editioncrafter/src/component/TranscriptionView.js b/editioncrafter/src/component/TranscriptionView.js index f7f6fc6..f69c77d 100644 --- a/editioncrafter/src/component/TranscriptionView.js +++ b/editioncrafter/src/component/TranscriptionView.js @@ -167,6 +167,7 @@ const TranscriptionView = (props) => { side={side} documentView={documentView} documentViewActions={documentViewActions} + bottom />
) @@ -201,6 +202,7 @@ const TranscriptionView = (props) => { side={side} documentView={documentView} documentViewActions={documentViewActions} + bottom />
); diff --git a/editioncrafter/src/scss/_diplomatic.scss b/editioncrafter/src/scss/_diplomatic.scss index e5e65eb..9031da6 100644 --- a/editioncrafter/src/scss/_diplomatic.scss +++ b/editioncrafter/src/scss/_diplomatic.scss @@ -1,5 +1,5 @@ #diplomatic { - container-type: size; + container-type: inline-size; container-name: diplomatic; #content-view, .header-wrapper, #entry-list-view, #annotation-list-view { h1, @@ -303,7 +303,8 @@ background: white; // position: fixed; width: auto; - height: auto; + height: min(100%, 100dvh); + overflow-y: scroll; // height: calc(100% - $chrome-height); // @include sm { // height: calc(100% - $sm-chrome-height); diff --git a/editioncrafter/src/scss/_glossary.scss b/editioncrafter/src/scss/_glossary.scss index 130dbc9..f11c09a 100644 --- a/editioncrafter/src/scss/_glossary.scss +++ b/editioncrafter/src/scss/_glossary.scss @@ -7,7 +7,7 @@ margin: 52px 0 0 0; } width: calc(100% - 1.2rem); - height: calc(100vh - 170px); + max-height: calc(100vh - 170px); padding: 5px 16px; } @@ -94,7 +94,7 @@ #glossaryContent { padding: 5rem 0 0; - min-height: 100vh; + max-height: 100vh; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; diff --git a/editioncrafter/src/scss/_imageGridView.scss b/editioncrafter/src/scss/_imageGridView.scss index 37c5aac..d845b58 100644 --- a/editioncrafter/src/scss/_imageGridView.scss +++ b/editioncrafter/src/scss/_imageGridView.scss @@ -2,7 +2,8 @@ background-color: #000000; font-size: 0.8rem; overflow: scroll; - height: 100vh; + height: 100%; + max-height: 100dvh; } .imageGridComponent > ul { diff --git a/editioncrafter/src/scss/_imageView.scss b/editioncrafter/src/scss/_imageView.scss index ec162c2..2e7b454 100644 --- a/editioncrafter/src/scss/_imageView.scss +++ b/editioncrafter/src/scss/_imageView.scss @@ -4,6 +4,7 @@ #image-view-seadragon-third { width: 100%; height: 100%; + max-height: 100dvh; grid-area: image_viewer; background: black; } @@ -13,7 +14,8 @@ padding: 0; margin: 0; width: 100%; - height: 100vh; + height: 100%; + max-height: 100dvh; } .a9s-annotation.a9s-annotation.selected > rect, diff --git a/editioncrafter/src/scss/_pagination.scss b/editioncrafter/src/scss/_pagination.scss index e157904..ab6bd5e 100644 --- a/editioncrafter/src/scss/_pagination.scss +++ b/editioncrafter/src/scss/_pagination.scss @@ -17,6 +17,10 @@ // padding:1rem 0 0 0; // } +.paginationComponent.bottom { + margin-top: 0; +} + .paginationControl { padding: 16px; @@ -27,6 +31,7 @@ color: #4A4A4A; margin: 1rem 1rem 0; cursor: pointer; + display: inline-block; } .paginationControl .folioName { diff --git a/editioncrafter/src/scss/_transcriptView.scss b/editioncrafter/src/scss/_transcriptView.scss index 807cc71..35e1c5c 100644 --- a/editioncrafter/src/scss/_transcriptView.scss +++ b/editioncrafter/src/scss/_transcriptView.scss @@ -1,7 +1,7 @@ .transcriptionViewComponent { overflow: scroll; - height:calc(100vh - 7rem); + max-height:calc(100vh - 7rem); .transcriptContent { padding: 50px 16px; @include md { @@ -12,7 +12,7 @@ -moz-user-select: text; -ms-user-select: text; user-select: text; - margin-bottom:92px; + //margin-bottom:92px; figure { display: inline-flex; diff --git a/editioncrafter/src/scss/_xmlView.scss b/editioncrafter/src/scss/_xmlView.scss index c06eb06..e3849c8 100644 --- a/editioncrafter/src/scss/_xmlView.scss +++ b/editioncrafter/src/scss/_xmlView.scss @@ -6,7 +6,8 @@ padding: 0; margin: 4.5rem 0 0; width: calc(100% - 1.2rem); - min-height: 100vh; + max-height: 100vh; + min-height: 100%; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; @@ -17,7 +18,7 @@ .xmlViewComponent { overflow: auto; margin: 0 0 0 1rem; - height: calc(100vh - 7rem); + max-height: calc(100vh - 7rem); } .xmlContentInner { diff --git a/editioncrafter/stories/EditionCrafter.stories.js b/editioncrafter/stories/EditionCrafter.stories.js index 5809bb1..12ed91c 100644 --- a/editioncrafter/stories/EditionCrafter.stories.js +++ b/editioncrafter/stories/EditionCrafter.stories.js @@ -81,7 +81,20 @@ export const MultiDocument = () => ( ); export const embeddedDiv = () => ( -
+
+ +
+) + +export const fullScreen = () => ( +