Skip to content

Commit 5dae44f

Browse files
committed
Autoscroll when change packages link
1 parent 5c9e080 commit 5dae44f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

resources/views/packages/index.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ class="d-none d-md-inline-flex link-body-emphasis text-decoration-none icon-link
2222
</x-header>
2323

2424
<x-container>
25-
<x-turbo::frame id="packages" refresh="morph">
25+
<x-turbo::frame id="packages"
26+
refresh="morph"
27+
data-turbo-action="advance"
28+
autoscroll="true"
29+
data-autoscroll-block="nearest"
30+
data-autoscroll-behavior="smooth"
31+
>
2632
<div class="row g-4 g-md-5 justify-content-center align-items-start position-relative mb-xl-5 mb-3">
2733
<div class="col-md-4 col-xl-3 d-none d-md-block">
2834
<span class="display-6 fw-bold text-body-emphasis mb-4 text-balance">Категории</span>

0 commit comments

Comments
 (0)