Skip to content

Commit bf99b20

Browse files
authored
Merge pull request #79 from scientist-softserv/i71-Change-Truncation-to-display-all-services
Added truncation as an option for description display
2 parents 87d2325 + 4c0b760 commit bf99b20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/browse/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const Browse = ({ session }) => {
6565
{(services.length > 0) ? (
6666
<>
6767
{services.map(service => {
68-
const { truncated, cutOffIndex } = truncateDescription(service?.description, 300, open)
68+
const { truncated, cutOffIndex } = truncateDescription(service?.description, service?.description.length, open)
6969
return (
7070
<Item
7171
key={service.id}
@@ -79,6 +79,7 @@ const Browse = ({ session }) => {
7979
{service?.description?.slice(cutOffIndex).trimStart()}
8080
</Markdown>
8181
)}
82+
truncateAt={cutOffIndex}
8283
item={service}
8384
withButtonLink={true}
8485
buttonLink={service.href}

0 commit comments

Comments
 (0)