I'm trying to make list of dishes in menu and I need to make dots until price from description. I want this to look like this
And also if description is too long like this
There is my code
<div className="container-fluid">
{dishes
.filter(dish => dish.category.id === props.category.id)
.map(dish => (
<div key={dish.id}>
<div className="row">
<h1 className="dish-title">{dish.name[state.lang]}</h1>
</div>
<div className="row">
<div className="col px-0">
{dish.description[state.lang] && <div className="dish-desc m-0">{dish.description[state.lang]}</div>}
</div>
<div className="col-auto">
<DishSizes
sizes={dish.sizes}
containerClassName="d-flex flex-column"
priceClassName="dish-price px-1"
/>
</div>
</div>
</div>
))}
</div>
Im mapping my json file, this is just dishes section, that renders all dishes. DishSizes is basically component that renders prices of dish. Do you guys have any idea how to do it?