Merged in feat/SW-1936-ui-room-card (pull request #2268)

feat(SW-1936): update room card ui

* feat(SW-1936): update room card ui


Approved-by: Linus Flood
This commit is contained in:
Bianca Widstam
2025-06-03 12:51:33 +00:00
parent 9580281421
commit 984805ea8d
11 changed files with 154 additions and 95 deletions

View File

@@ -19,6 +19,16 @@
color: var(--Text-Inverted);
}
.imageCountBottom {
bottom: var(--Space-x2);
top: auto;
}
.imageCountTop {
top: var(--Space-x2);
bottom: auto;
}
.triggerArea {
background-color: transparent;
border-width: 0;

View File

@@ -21,6 +21,7 @@ function ImageGallery({
height = 280,
sizes,
hideLabel,
imageCountPosition = "bottom",
}: ImageGalleryProps) {
const intl = useIntl()
const [isOpen, setIsOpen] = useState(false)
@@ -44,7 +45,13 @@ function ImageGallery({
{...imageProps}
/>
<Typography variant={"Body/Supporting text (caption)/smRegular"}>
<span className={styles.imageCount}>
<span
className={`${styles.imageCount} ${
imageCountPosition === "top"
? styles.imageCountTop
: styles.imageCountBottom
}`}
>
<MaterialIcon icon="filter" color="Icon/Inverted" size={16} />
<span>{images.length}</span>
</span>