From d18abc6159e0ca69ec8a4b1e1a1f4cd290cb21e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20P=C5=82aczek?= Date: Wed, 19 Feb 2025 15:29:31 +0100 Subject: [PATCH] Table is responsive on mobile --- templates/product.html.twig | 101 ++++++++++++++++---------------- templates/productList.html.twig | 4 +- 2 files changed, 55 insertions(+), 50 deletions(-) diff --git a/templates/product.html.twig b/templates/product.html.twig index a267b4e..bbffcd2 100644 --- a/templates/product.html.twig +++ b/templates/product.html.twig @@ -1,57 +1,60 @@ {% extends "template.html.twig" %} {% block content %} - - - - - - - - - - - - - + + + + + + + {% endfor %} +
{% if product.starred %}★{% else %} ☆ {% endif %}{{ product.name }} - {{ product.name }} - {{ product.subTitle }} - - - link
-
- -
-
- - - - - - - - - - {% for price in product.price %} +
+
pricelowest product price in 30 daysstandard priceStock
+ + + + + + + + + + + + - -
{% if product.starred %}★{% else %} ☆ {% endif %}{{ product.name }} + {{ product.name }} + {{ product.subTitle }} + + + link
+
+ +
+
+ + - - - - - + + + + - {% endfor %} -
{{ price.price | format_currency('PLN', {}, 'pl') }}{{ price.lowestProductPrice30Days | format_currency('PLN', {}, 'pl') }}{{ price.productStandardPrice | format_currency('PLN', {}, 'pl') }}{{ price.created_at }}{{ (product.stock | findByCreatedAtDate(price.created_at | slice(0,10))).stock ?? '' }}pricelowest product price in 30 daysstandard priceStock
-
+ + {% for price in product.price %} +
{{ price.price | format_currency('PLN', {}, 'pl') }}{{ price.lowestProductPrice30Days | format_currency('PLN', {}, 'pl') }}{{ price.productStandardPrice | format_currency('PLN', {}, 'pl') }}{{ price.created_at }}{{ (product.stock | findByCreatedAtDate(price.created_at | slice(0,10))).stock ?? '' }}
+ + + +