I'm looking for a solution to this problem:
I have a lwc that get passed a text and displays it, but when it's too long (being a title I can't truncate it) I'd need to resize it, to make sure the entire text is displayed and fits his container.
How can I do this?
Thanks
JS
import { LightningElement, api } from 'lwc';
export default class LwcAppStoreTile extends LightningElement {
@api appname;
}
HTML + CSS
<template>
<div class="class1">{appname}</div>
</template>
.class1 {
height: 30px;
width: 182px;
}