mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-17 19:12:40 -05:00
fix(studios): remove duplicate css for full width load more buttons
Remove the `display: content;` way of making the load more button full width, and reuse the existing shared css class instead. Also change the markup back to the way it was originally, with the load more button within the grid, since that is how it is meant to be used
This commit is contained in:
parent
d693beb1b3
commit
ad386714a9
2 changed files with 13 additions and 16 deletions
|
@ -92,9 +92,8 @@ const UserProjectsModal = ({
|
|||
onRemove={onRemove}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
{moreToLoad &&
|
||||
<div className="studio-projects-load-more">
|
||||
<div className="studio-grid-load-more">
|
||||
<button
|
||||
className={classNames('button', {
|
||||
'mod-mutating': loading
|
||||
|
@ -105,6 +104,8 @@ const UserProjectsModal = ({
|
|||
</button>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
</React.Fragment>
|
||||
}
|
||||
{!loading && items.length === 0 &&
|
||||
|
|
|
@ -44,10 +44,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.studio-projects-load-more {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.studio-projects-done-row {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
|
Loading…
Reference in a new issue