Currently, I am using the ant.design Card
component to present messages in a chat webapp built with react/redux. However, each card is displaying too much space around the text. Is there a way to adjust the card so that it wraps the text more closely?
https://i.stack.imgur.com/lhAz3.png
This is the React code snippet:
<Card
bordered={false}
style={{
// other styles...
width: width,
height: 70 <== merely reducing this number doesn't solve the issue
}}
>
<p>{message.contents}</p>
</Card>
Simply decreasing the height does not work and results in: