Skip to content

Commit

Permalink
fix: fix cContacts block horizontal alignment (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini authored Sep 15, 2023
1 parent 049f520 commit b68ee5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { checkRedraftHasContent } from 'design-comuni-plone-theme/helpers';
const ViewBlock = ({ data, isOpen, toggle, id, index }) => {
return (
<Card
className="card-bg rounded subblock-view"
className="card-bg rounded subblock-view "
noWrapper={false}
space
tag="div"
Expand Down
4 changes: 2 additions & 2 deletions src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Edit extends SubblocksEdit {
</div>

<SubblocksWrapper node={this.node}>
<Row>
<Row className="justify-content-center">
{this.state.subblocks.map((subblock, subindex) => (
<Col lg="4" key={subblock.id}>
<EditBlock
Expand All @@ -120,7 +120,7 @@ class Edit extends SubblocksEdit {
))}

{this.props.selected && (
<Col lg={4}>
<Col lg={12} className="text-center pb-3">
{this.renderAddBlockButton(
this.props.intl.formatMessage(messages.addItem),
)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ItaliaTheme/Blocks/ContactsBlock/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ const AccordionView = ({ data, block }) => {
)}
</div>
</div>
<Row>
<Row className="justify-content-center">
{data.subblocks.map((subblock, index) => (
<Col lg="4" key={subblock.id}>
<Col lg="4" key={subblock.id} className="pb-3">
<ViewBlock
data={subblock}
key={index}
Expand Down

0 comments on commit b68ee5e

Please sign in to comment.