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
......
...@@ -147,7 +147,7 @@ $radius: 8px; ...@@ -147,7 +147,7 @@ $radius: 8px;
} }
} }
/* Overrides for when title and description are editable textareas. These override inplace-input */ /* Overrides for when title and description are editable textareas. These override inplace-input */
textarea.studio-title, textarea.studio-description { textarea.studio-title, textarea.studio-description {
padding: 5px 8px; padding: 5px 8px;
...@@ -241,14 +241,14 @@ $radius: 8px; ...@@ -241,14 +241,14 @@ $radius: 8px;
border: 1px solid $ui-blue; border: 1px solid $ui-blue;
border-radius: 1rem; border-radius: 1rem;
font-weight: bold; font-weight: bold;
color: $ui-blue; color: $ui-blue;
font-size: 12px; font-size: 12px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.manager-threshold-message { .manager-threshold-message {
...@@ -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