Skip to content

Commit

Permalink
fix(listing): fix classnames on search item
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Nov 10, 2022
1 parent ea477fe commit 6b12c13
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/blocks/Listing/item-templates/SearchItemTemplate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ const BasicItem = (props) => {
className,
)}
>
<div className="wrapper">
<div
className={`wrapper ${imageOnRightSide ? 'right-image' : 'left-image'}`}
>
<div className="slot-head">{item?.meta}</div>
<div className="slot-top">
{hasImage ? (
Expand All @@ -51,7 +53,7 @@ const BasicItem = (props) => {
hasDescription={hasDescription}
hasDate={hasDate}
/>
<div className={'image-wrapper right'}>
<div className="image-wrapper">
<PreviewImage
item={item}
preview_image_url={item.preview_image_url}
Expand All @@ -60,7 +62,7 @@ const BasicItem = (props) => {
</>
) : (
<>
<div className={'image-wrapper left'}>
<div className="image-wrapper">
<PreviewImage
item={item}
preview_image_url={item.preview_image_url}
Expand Down

0 comments on commit 6b12c13

Please sign in to comment.