From f08d985521100729a4e580f59c7a02d02309e7c3 Mon Sep 17 00:00:00 2001 From: Jade Geels Date: Mon, 13 May 2024 13:03:50 +0200 Subject: [PATCH 1/2] Enable scroll snapping & turn table into rapidez slider --- resources/views/compare.blade.php | 77 +++++++++++++++++++++---------- 1 file changed, 53 insertions(+), 24 deletions(-) diff --git a/resources/views/compare.blade.php b/resources/views/compare.blade.php index 18fae57..9c5d45a 100644 --- a/resources/views/compare.blade.php +++ b/resources/views/compare.blade.php @@ -6,37 +6,66 @@ @section('content')

@lang('Compare')

- +
-
-
-
-
-
-
- - - - @{{ item.product.name }} - + +
+
+ + + +
+
+
+ -
-
- - @{{ attribute.label }} - -
-
-
-
@{{ product.attributes.find((attr) => attr.code === attribute.code)?.value }}
+
+ + @{{ attribute.label }} + +
+
+
+
@{{ product.attributes.find((attr) => attr.code === attribute.code)?.value }}
+
-
+
From 51c5ff099a865d908f6cb7fc210a4fbbaddace92 Mon Sep 17 00:00:00 2001 From: Jade Geels Date: Mon, 13 May 2024 13:28:16 +0200 Subject: [PATCH 2/2] Use snap-end --- resources/views/compare.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/compare.blade.php b/resources/views/compare.blade.php index 9c5d45a..5d1cb46 100644 --- a/resources/views/compare.blade.php +++ b/resources/views/compare.blade.php @@ -33,7 +33,7 @@ class="ml-auto sticky z-50 top-14 rounded-full border size-12 flex justify-cente