The container that contains the text should have the following styling:
.my-container {
height: 100%;
overflow-y: auto;
}
The height should set the container to the height of the card.
The overflow tells the container to show a scrollbar if the content is bigger than the height, and hide the scrollbar if the content fits.
Hope this helps!