Skip to content

Commit 809b497

Browse files
authored
Добавлен якорь на блок комментариев для кнопки комментариев (#259)
1 parent ff38937 commit 809b497

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/post/list.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class="position-absolute start-0 end-0 top-0 bottom-0 z-2"></a>
8080
<x-like :model="$post"/>
8181

8282
<a class="d-flex align-items-center text-body-secondary text-decoration-none me-4"
83-
href="{{ route('post.show', $post) }}">
83+
href="{{ route('post.show', [$post, '#comments-frame']) }}">
8484
<x-icon path="i.comment"/>
8585
@if($post->comments_count > 0)
8686
<span class="ms-2">{{ $post->comments_count }}</span>

resources/views/post/show.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class="position-absolute top-0 end-0 m-4 btn btn-link link-secondary text-decora
7373
<x-like :model="$post"/>
7474

7575
<a class="d-flex align-items-center text-body-secondary text-decoration-none me-4"
76-
href="{{ route('post.show', $post) }}">
76+
href="{{ route('post.show', [$post, '#comments-frame']) }}">
7777
<x-icon path="i.comment"/>
7878
<span class="ms-2">{{ $post->comments_count }}</span>
7979
</a>

0 commit comments

Comments
 (0)