Commit d693beb1 authored by Paul Kaplan's avatar Paul Kaplan

fix(studios): share css to make load more buttons full width

Changes the markup and css classes used by activity, curators, managers and projects grids to use a
shared full-width load more button
parent 4866d96d
...@@ -196,8 +196,8 @@ const StudioActivity = ({items, loading, error, moreToLoad, onLoadMore}) => { ...@@ -196,8 +196,8 @@ const StudioActivity = ({items, loading, error, moreToLoad, onLoadMore}) => {
getComponentForItem(item) getComponentForItem(item)
)} )}
</ul> </ul>
<div>
{moreToLoad && {moreToLoad &&
<div className="studio-grid-load-more">
<button <button
className={classNames('button', { className={classNames('button', {
'mod-mutating': loading 'mod-mutating': loading
...@@ -206,8 +206,8 @@ const StudioActivity = ({items, loading, error, moreToLoad, onLoadMore}) => { ...@@ -206,8 +206,8 @@ const StudioActivity = ({items, loading, error, moreToLoad, onLoadMore}) => {
> >
<FormattedMessage id="general.loadMore" /> <FormattedMessage id="general.loadMore" />
</button> </button>
}
</div> </div>
}
</div> </div>
); );
}; };
......
...@@ -66,7 +66,7 @@ const StudioCurators = ({ ...@@ -66,7 +66,7 @@ const StudioCurators = ({
/>) />)
)} )}
{moreToLoad && {moreToLoad &&
<div className="studio-members-load-more"> <div className="studio-grid-load-more">
<button <button
className={classNames('button', { className={classNames('button', {
'mod-mutating': loading 'mod-mutating': loading
......
...@@ -103,7 +103,7 @@ const StudioManagers = ({ ...@@ -103,7 +103,7 @@ const StudioManagers = ({
/>) />)
)} )}
{moreToLoad && {moreToLoad &&
<div className="studio-members-load-more"> <div className="studio-grid-load-more">
<button <button
className={classNames('button', { className={classNames('button', {
'mod-mutating': loading 'mod-mutating': loading
......
...@@ -105,7 +105,7 @@ const StudioProjects = ({ ...@@ -105,7 +105,7 @@ const StudioProjects = ({
/>) />)
)} )}
{moreToLoad && {moreToLoad &&
<div className="studio-projects-load-more"> <div className="studio-grid-load-more">
<button <button
className={classNames('button', { className={classNames('button', {
'mod-mutating': loading 'mod-mutating': loading
......
...@@ -270,9 +270,12 @@ $radius: 8px; ...@@ -270,9 +270,12 @@ $radius: 8px;
} }
column-gap: 20px; column-gap: 20px;
row-gap: 20px; row-gap: 20px;
}
.studio-projects-load-more { .studio-grid-load-more {
grid-column: 1 / -1; grid-column: 1 / -1;
button {
width: 100%;
} }
} }
...@@ -345,9 +348,6 @@ $radius: 8px; ...@@ -345,9 +348,6 @@ $radius: 8px;
} }
column-gap: 20px; column-gap: 20px;
row-gap: 20px; row-gap: 20px;
.studio-members-load-more {
grid-column: 1 / -1;
}
} }
.studio-tabs { .studio-tabs {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment