Skip to content

Commit

Permalink
Merge pull request #108 from cu-mkp/dev
Browse files Browse the repository at this point in the history
Another round of styling tweaks
  • Loading branch information
ajolipa authored Apr 24, 2024
2 parents bce5833 + bce4c61 commit b393c2a
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 8 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.11",
"version": "0.2.12",
"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.11",
"version": "0.2.12",
"description": "A simple digital critical edition publication tool",
"homepage": "https://cu-mkp.github.io/editioncrafter/",
"private": false,
Expand Down
5 changes: 4 additions & 1 deletion editioncrafter/src/component/ImageGridView.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ class ImageGridView extends React.Component {
}

onSelectDoc = (event) => {
if (event.target.value !== 'none') {
if (!event.target.value || event.target.value == 0) {
return;
}
if (event.target.value && event.target.value !== 'none') {
this.setState({ ...this.state, currentDoc: event.target.value });
} else {
this.setState({ ...this.state, currentDoc: null });
Expand Down
8 changes: 4 additions & 4 deletions editioncrafter/src/component/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Navigation = (props) => {
};

const changeType = (event) => {
if (event.target.value === undefined) return;
if (event.target.value === undefined || event.target.value === 0) return;
props.documentViewActions.changeTranscriptionType(
props.side,
event.target.value,
Expand Down Expand Up @@ -353,14 +353,14 @@ const Navigation = (props) => {
onClick={changeType}
>
{Object.keys(props.document.folios.find((fol) => (fol.id == props.documentView[props.side].iiifShortID)).annotationURLs).map(ttKey => (
<MenuItem value={ttKey} key={ttKey}>{props.document.variorum ? props.document.transcriptionTypes[props.document.folios.find((fol) => (fol.id == props.documentView[props.side].iiifShortID)).doc_id][ttKey] : props.document.transcriptionTypes[ttKey]}</MenuItem>
<MenuItem value={ttKey} key={ttKey} title={ttKey}>{props.document.variorum ? props.document.transcriptionTypes[props.document.folios.find((fol) => (fol.id == props.documentView[props.side].iiifShortID)).doc_id][ttKey] : props.document.transcriptionTypes[ttKey]}</MenuItem>
))}
<MenuItem value="f" key="f">
{DocumentHelper.transcriptionTypeLabels.f}
</MenuItem>
<MenuItem value="glossary" key="glossary">
{ props.glossary && <MenuItem value="glossary" key="glossary">
{DocumentHelper.transcriptionTypeLabels.glossary}
</MenuItem>
</MenuItem> }
</Select>
<span
title="Toggle folio help"
Expand Down
5 changes: 5 additions & 0 deletions editioncrafter/src/scss/_imageGridView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
max-height: 100dvh;
}

.imageGridComponent .thumbnail {
background-color: inherit;
border: none;
}

.imageGridComponent > ul {
display: flex;
flex-wrap: wrap;
Expand Down
9 changes: 9 additions & 0 deletions editioncrafter/src/scss/_singlePaneView.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.single-pane-view {
height: 100%;
width: 100%;
overflow: auto;
}

.single-pane-view > div {
height: 100%;
}
3 changes: 2 additions & 1 deletion editioncrafter/src/scss/editioncrafter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@ animation: #{$str};

@import "CETEIcean";

@import "ringSpinner";
@import "ringSpinner";
@import "singlePaneView";

0 comments on commit b393c2a

Please sign in to comment.