mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
fixed problem that occured with remix credits
This commit is contained in:
parent
0a50c1fb34
commit
a9872a14ff
2 changed files with 14 additions and 2 deletions
|
@ -192,11 +192,14 @@ $stage-width: 480px;
|
|||
.project-notes {
|
||||
// not 1.5rem because of stage padding
|
||||
margin-left: 1rem;
|
||||
height: calc(#{$player-height} - 1rem);
|
||||
height: #{$player-height};
|
||||
align-items: flex-start;
|
||||
flex: 1;
|
||||
flex-flow: column;
|
||||
align-self: flex-end;
|
||||
|
||||
> .description-block:first-child {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.share-date {
|
||||
|
@ -230,6 +233,14 @@ $stage-width: 480px;
|
|||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.credit-text {
|
||||
/* Line clamping is not supported in IE, FF yet */
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.description-block {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
|
|
|
@ -19,6 +19,7 @@ const RemixCredit = props => {
|
|||
{projectInfo.author.username}
|
||||
</a> for the original project <a
|
||||
href={`/preview/${projectInfo.id}`}
|
||||
title={projectInfo.title}
|
||||
>
|
||||
{projectInfo.title}
|
||||
</a>.
|
||||
|
|
Loading…
Reference in a new issue