mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
💄 Add conditional rendering for image
This commit is contained in:
@@ -137,15 +137,17 @@ function RssTile({ widget }: RssTileProps) {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<Flex gap="xs">
|
<Flex gap="xs">
|
||||||
<MediaQuery query="(max-width: 1200px)" styles={{ display: 'none' }}>
|
{item.enclosure && (
|
||||||
<Image
|
<MediaQuery query="(max-width: 1200px)" styles={{ display: 'none' }}>
|
||||||
src={item.enclosure?.url ?? undefined}
|
<Image
|
||||||
width={140}
|
src={item.enclosure?.url ?? undefined}
|
||||||
height={140}
|
width={140}
|
||||||
radius="md"
|
height={140}
|
||||||
withPlaceholder
|
radius="md"
|
||||||
/>
|
withPlaceholder
|
||||||
</MediaQuery>
|
/>
|
||||||
|
</MediaQuery>
|
||||||
|
)}
|
||||||
<Flex gap={2} direction="column">
|
<Flex gap={2} direction="column">
|
||||||
{item.categories && (
|
{item.categories && (
|
||||||
<Flex gap="xs" wrap="wrap" h={20} style={{ overflow: 'hidden' }}>
|
<Flex gap="xs" wrap="wrap" h={20} style={{ overflow: 'hidden' }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user