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}) => {
getComponentForItem(item)
)}
</ul>
<div>
{moreToLoad &&
<div className="studio-grid-load-more">
<button
className={classNames('button', {
'mod-mutating': loading
......@@ -206,8 +206,8 @@ const StudioActivity = ({items, loading, error, moreToLoad, onLoadMore}) => {
>
<FormattedMessage id="general.loadMore" />
</button>
}
</div>
}
</div>
);
};
......
......@@ -66,7 +66,7 @@ const StudioCurators = ({
/>)
)}
{moreToLoad &&
<div className="studio-members-load-more">
<div className="studio-grid-load-more">
<button
className={classNames('button', {
'mod-mutating': loading
......
......@@ -103,7 +103,7 @@ const StudioManagers = ({
/>)
)}
{moreToLoad &&
<div className="studio-members-load-more">
<div className="studio-grid-load-more">
<button
className={classNames('button', {
'mod-mutating': loading
......
......@@ -105,7 +105,7 @@ const StudioProjects = ({
/>)
)}
{moreToLoad &&
<div className="studio-projects-load-more">
<div className="studio-grid-load-more">
<button
className={classNames('button', {
'mod-mutating': loading
......
......@@ -270,9 +270,12 @@ $radius: 8px;
}
column-gap: 20px;
row-gap: 20px;
}
.studio-projects-load-more {
.studio-grid-load-more {
grid-column: 1 / -1;
button {
width: 100%;
}
}
......@@ -345,9 +348,6 @@ $radius: 8px;
}
column-gap: 20px;
row-gap: 20px;
.studio-members-load-more {
grid-column: 1 / -1;
}
}
.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