Merge pull request #2595 from LLK/develop

Release to master 1/3/2018
This commit is contained in:
Ray Schamp 2019-01-03 17:08:00 -05:00 committed by GitHub
commit 62585d9a06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 90 additions and 82 deletions

View file

@ -100,7 +100,7 @@
"redux": "3.5.2",
"redux-thunk": "2.0.1",
"sass-loader": "6.0.6",
"scratch-gui": "0.1.0-prerelease.20190102131553",
"scratch-gui": "0.1.0-prerelease.20190103214909",
"scratch-l10n": "latest",
"scratchr2_translations": "git://github.com/LLK/scratchr2_translations.git#master",
"slick-carousel": "1.6.0",

View file

@ -110,7 +110,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: "Helvetica Neue";
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: .875rem;
font-weight: regular;
flex-shrink: 1;

View file

@ -123,6 +123,10 @@ const PreviewPresentation = ({
}) => {
const shareDate = ((projectInfo.history && projectInfo.history.shared)) ? projectInfo.history.shared : '';
const revisedDate = ((projectInfo.history && projectInfo.history.modified)) ? projectInfo.history.modified : '';
const showInstructions = editable || projectInfo.instructions ||
(!projectInfo.instructions && !projectInfo.description); // show if both are empty
const showNotesAndCredits = editable || projectInfo.description ||
(!projectInfo.instructions && !projectInfo.description); // show if both are empty
// Allow embedding html in banner messages coming from the server
const embedCensorMessage = message => (
@ -348,6 +352,7 @@ const PreviewPresentation = ({
</FlexRow>
</FlexRow>
</MediaQuery>
{showInstructions && (
<div className="description-block">
<div className="project-textlabel">
<FormattedMessage id="project.instructionsLabel" />
@ -389,6 +394,8 @@ const PreviewPresentation = ({
</div>
}
</div>
)}
{showNotesAndCredits && (
<div className="description-block">
<div className="project-textlabel">
<FormattedMessage id="project.notesAndCreditsLabel" />
@ -431,6 +438,7 @@ const PreviewPresentation = ({
</div>
}
</div>
)}
{/* eslint-enable max-len */}
</FlexRow>
</FlexRow>