<style>
/* Estilo del texto con límite de 3 líneas */
.text-container {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
transition: max-height 0.5s ease;
}
/* Cuando está expandido, se muestra completo */
.expanded {
-webkit-line-clamp: unset;
}
/* Estilo del botón */
.toggle-btn {
cursor: pointer;
color: #007bff;
font-weight: bold;
text-align: center;
margin-top: 8px;
user-select: none;
display: inline-block;
}
/* Aumentar el ancho del tooltip */
.tooltip-inner {
max-width: 300px !important; /* Puedes cambiar este valor */
text-align: left;
white-space: normal;
}
.order-container .title-block{
top: 30px;
z-index: 1000;
background: #f8f9fa;
}
</style>
<div class="row">
<div class="col-12">
<div class="row align-items-start">
{% for category in categories %}
<div class="col-6 col-xxl-3 col-xl-3 col-lg-4 col-md-6 d-flex align-items-center mb-3 product-row" >
<div class="row">
<!-- Imagen -->
<div class="col-lg-12 col-12">
<img src="/uploads/images/categories/{{ category.getImageName }}" alt="{{ category.name }}" class="img-fluid rounded pointer zoom" onclick="window.location.href='/order?category={{category.id}}'">
</div>
<!-- Información -->
<div class="col-lg-12 col-12">
<h6 class="section-title mt-1 pointer" onclick="window.location.href='/order?category={{category.id}}'">{{ category.name }}</h5>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>