diff --git a/webapp/src/components/calendar/fullcalendar.scss b/webapp/src/components/calendar/fullcalendar.scss
index c853e99d2..77cb797a4 100644
--- a/webapp/src/components/calendar/fullcalendar.scss
+++ b/webapp/src/components/calendar/fullcalendar.scss
@@ -204,9 +204,13 @@
}
.fc-event-title {
+ display: -webkit-box; // stylelint-disable-line
font-size: 14px;
- overflow: unset;
white-space: normal;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ -webkit-line-clamp: 5;
+ -webkit-box-orient: vertical; // stylelint-disable-line
}
.fc-day-sat,
diff --git a/webapp/src/components/gallery/__snapshots__/galleryCard.test.tsx.snap b/webapp/src/components/gallery/__snapshots__/galleryCard.test.tsx.snap
index 48c263231..09e049b4a 100644
--- a/webapp/src/components/gallery/__snapshots__/galleryCard.test.tsx.snap
+++ b/webapp/src/components/gallery/__snapshots__/galleryCard.test.tsx.snap
@@ -18,7 +18,9 @@ exports[`src/components/gallery/GalleryCard with a comment content return Galler
>
i
-
@@ -164,7 +166,9 @@ exports[`src/components/gallery/GalleryCard with a comment content should match
>
i
-
@@ -316,7 +320,9 @@ exports[`src/components/gallery/GalleryCard with an image content should match s
>
i
-
@@ -346,7 +352,9 @@ exports[`src/components/gallery/GalleryCard with many contents return GalleryCar
>
i
-
@@ -496,7 +504,9 @@ exports[`src/components/gallery/GalleryCard with many contents should match snap
>
i
-
@@ -648,7 +658,9 @@ exports[`src/components/gallery/GalleryCard with many images content should matc
>
i
-
@@ -687,7 +699,9 @@ exports[`src/components/gallery/GalleryCard without block content return Gallery
>
i
-
@@ -726,7 +740,9 @@ exports[`src/components/gallery/GalleryCard without block content return Gallery
>
i
-
@@ -765,7 +781,9 @@ exports[`src/components/gallery/GalleryCard without block content return Gallery
>
i
-
@@ -804,7 +822,9 @@ exports[`src/components/gallery/GalleryCard without block content return Gallery
>
i
-
@@ -950,7 +970,9 @@ exports[`src/components/gallery/GalleryCard without block content should match s
>
i
-
diff --git a/webapp/src/components/gallery/galleryCard.scss b/webapp/src/components/gallery/galleryCard.scss
index 84d4074f7..ee43b5d13 100644
--- a/webapp/src/components/gallery/galleryCard.scss
+++ b/webapp/src/components/gallery/galleryCard.scss
@@ -81,6 +81,14 @@
.octo-icon {
margin-right: 5px;
}
+
+ .octo-titletext {
+ display: -webkit-box; // stylelint-disable-line
+ overflow: hidden;
+ text-overflow: ellipsis;
+ -webkit-line-clamp: 5;
+ -webkit-box-orient: vertical; // stylelint-disable-line
+ }
}
.gallery-props {
diff --git a/webapp/src/components/gallery/galleryCard.tsx b/webapp/src/components/gallery/galleryCard.tsx
index f91a90e53..dc6d600d7 100644
--- a/webapp/src/components/gallery/galleryCard.tsx
+++ b/webapp/src/components/gallery/galleryCard.tsx
@@ -156,7 +156,10 @@ const GalleryCard = (props: Props) => {
{props.visibleTitle &&
{ card.fields.icon ?
{card.fields.icon}
: undefined }
-