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 -
+
title
@@ -164,7 +166,9 @@ exports[`src/components/gallery/GalleryCard with a comment content should match > i -
+
title
@@ -316,7 +320,9 @@ exports[`src/components/gallery/GalleryCard with an image content should match s > i -
+
title
@@ -346,7 +352,9 @@ exports[`src/components/gallery/GalleryCard with many contents return GalleryCar > i -
+
title
@@ -496,7 +504,9 @@ exports[`src/components/gallery/GalleryCard with many contents should match snap > i -
+
title
@@ -648,7 +658,9 @@ exports[`src/components/gallery/GalleryCard with many images content should matc > i -
+
title
@@ -687,7 +699,9 @@ exports[`src/components/gallery/GalleryCard without block content return Gallery > i -
+
title
@@ -726,7 +740,9 @@ exports[`src/components/gallery/GalleryCard without block content return Gallery > i -
+
title
@@ -765,7 +781,9 @@ exports[`src/components/gallery/GalleryCard without block content return Gallery > i -
+
title
@@ -804,7 +822,9 @@ exports[`src/components/gallery/GalleryCard without block content return Gallery > i -
+
title
@@ -950,7 +970,9 @@ exports[`src/components/gallery/GalleryCard without block content should match s > i -
+
title
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 } -
+
{card.title ||