Closed amrutadotorg closed 1 week ago
I don't think it shoud be the default, but we could have an option to wrap the text. Do you want to make a pr ?
How about introducing a top-level parameter wrap
of type bool
? If wrap
is set to true
, then all description
& description_md
parameters at both the top level and row level will be wrapped.
Yes, that would be good
Great. Do we have already a css class for that?
For example we could use it like that:
`{{#if description_md}} {{#if wrap}}
{{else}}
{{{markdown description_md}}}
{{/if}}`
Yes, we have the text-wrap
class
thank you, I tired this, but it does not work. Have no other ideas.
{{#if title}}
<h2 class="mt-3 mb-0">{{title}}</h2>
{{/if}}
{{#if description}}
{{#if wrap}}
<p class="text-wrap">{{description}}</p>
{{else}}
<p>{{description}}</p>
{{/if}}
{{/if}}
I implemented it
Ahh I modified card component instead of a list component:)
Hi. I would suggest to remove the trim option for the row contents in the card component (for mobile version). Attaching example.
Thank you