mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #2046 from LiFaytheGoblin/2045/project-page/studio-thumbnails
Fix appearance of studio thumbnails on preview project page
This commit is contained in:
commit
a8ebdb7d32
5 changed files with 22 additions and 11 deletions
|
@ -74,6 +74,7 @@ const Thumbnail = props => {
|
|||
<a
|
||||
href={props.href}
|
||||
key="titleElement"
|
||||
title={props.title}
|
||||
>
|
||||
{props.title}
|
||||
</a>
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
$thumbnail-width: 220px;
|
||||
$thumbnail-inner-width: 204px;
|
||||
|
||||
|
||||
$project-height: 208px;
|
||||
$gallery-height: 164px;
|
||||
|
||||
|
||||
margin: 0 auto;
|
||||
padding: 12px 0;
|
||||
justify-content: flex-start;
|
||||
|
@ -16,14 +16,13 @@
|
|||
|
||||
.thumbnail {
|
||||
margin: 7px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 0 0 1px $active-gray;
|
||||
background-color: $ui-white;
|
||||
padding-bottom: 4px;
|
||||
width: $thumbnail-width;
|
||||
|
||||
.thumbnail-image {
|
||||
margin: 8px auto;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 0 0 1px $active-gray;
|
||||
background-color: $ui-white;
|
||||
width: $thumbnail-inner-width;
|
||||
}
|
||||
|
||||
|
@ -45,10 +44,18 @@
|
|||
.thumbnail-title {
|
||||
float: left;
|
||||
max-width: 164px;
|
||||
overflow: hidden;
|
||||
|
||||
.thumbnail-creator a {
|
||||
color: $type-gray;
|
||||
}
|
||||
|
||||
a {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -503,8 +503,11 @@ $stage-width: 480px;
|
|||
.studio-list {
|
||||
flex-direction: column;
|
||||
|
||||
.project {
|
||||
margin-bottom: 1.5rem;
|
||||
.list-title {
|
||||
margin-left: 1rem;
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.creator-image img {
|
||||
|
|
|
@ -9,7 +9,7 @@ const RemixList = props => {
|
|||
if (remixes.length === 0) return null;
|
||||
return (
|
||||
<FlexRow className="remix-list">
|
||||
<div className="project-title">
|
||||
<div className="list-title">
|
||||
Remixes
|
||||
</div>
|
||||
{remixes.length === 0 ? (
|
||||
|
|
|
@ -8,8 +8,8 @@ const StudioList = props => {
|
|||
const studios = props.studios;
|
||||
if (studios.length === 0) return null;
|
||||
return (
|
||||
<FlexRow className="remix-list">
|
||||
<div className="project-title">
|
||||
<FlexRow className="studio-list">
|
||||
<div className="list-title">
|
||||
Studios
|
||||
</div>
|
||||
{studios.length === 0 ? (
|
||||
|
|
Loading…
Reference in a new issue