Skip to content

Commit

Permalink
- fix css for image result type, tile footer
Browse files Browse the repository at this point in the history
  • Loading branch information
reebalazs committed Feb 26, 2024
1 parent c00ea41 commit 02566e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ResultItemPreviewImage from './helpers/ResultItemPreviewImage';
import IconForContentType from './helpers/IconForContentType';

const ImageResultItem = ({ item }) => (
<article className="tileItem">
<article className="tileItem imageResultItem">
{/* <span className="contentTypeLabel">
<FormattedMessage id={mapContentTypes(item['@type'])} />
</span> */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export const getImageType = (mimeType) => {
}
};

const ImageType = ({ mimeType }) => getImageType(mimeType);
const ImageType = ({ mimeType }) => (
<span className="imageType">{getImageType(mimeType)}</span>
);

export default ImageType;
8 changes: 8 additions & 0 deletions src/theme/solrsearch.less
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,12 @@
}
}
}

.imageResultItem {
.tileFooter {
.imageType {
margin-right: 8px;
}
}
}
}

0 comments on commit 02566e8

Please sign in to comment.