Skip to content

Commit

Permalink
Event and Planning profile editor doesn't display Groups in Fields (#…
Browse files Browse the repository at this point in the history
…2074)

* add variant prop on toggleBox component

* scrolable list style
  • Loading branch information
dzonidoo authored Sep 10, 2024
1 parent a36c673 commit c8719c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/components/ContentProfiles/FieldTab/FieldList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export class FieldList extends React.PureComponent<IProps> {
this.renderList()
) : (
<ToggleBox
variant="simple"
key={this.props.group._id}
title={getProfileGroupNameTranslated(this.props.group)}
className="toggle-box--circle toggle-box--no-line"
Expand Down
1 change: 1 addition & 0 deletions client/components/ContentProfiles/GroupTab/GroupEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export class GroupEditor extends React.PureComponent<IProps> {
</div>
{!this.props.languages?.length ? null : (
<ToggleBox
variant="simple"
title={gettext('Name Translations')}
className="toggle-box--circle"
initiallyOpen={true}
Expand Down
10 changes: 10 additions & 0 deletions client/components/SortItems/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@
.sortable-list__item button {
padding: 0px !important;
}

.sd-list-item-group {
padding: 4px 4px 18px 4px;
}

.sd-list-item-group--space-between-items .sortable-list {
display: flex;
flex-direction: column;
gap: var(--gap--small);
}

0 comments on commit c8719c4

Please sign in to comment.