Skip to content

Commit 1b049bc

Browse files
committed
UX: Css pointer
1 parent d62a0dd commit 1b049bc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

app/Content/Html.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static function favorite($content_id, $type, $tid, $heading = '')
107107
$html = '<div class="click-no-auth gray-600"><svg class="icons"><use xlink:href="/assets/svg/icons.svg#bookmark"></use></svg>' . $head . '</div>';
108108
if (UserData::checkActiveUser()) {
109109
$active = $tid ? 'active' : 'gray-600';
110-
$html = '<div id="favorite_' . $content_id . '" class="add-favorite ' . $active . '" data-id="' . $content_id . '" data-type="' . $type . '"><svg class="icons"><use xlink:href="/assets/svg/icons.svg#bookmark"></use></svg></i>' . $head . '</div>';
110+
$html = '<div id="favorite_' . $content_id . '" class="add-favorite pointer ' . $active . '" data-id="' . $content_id . '" data-type="' . $type . '"><svg class="icons"><use xlink:href="/assets/svg/icons.svg#bookmark"></use></svg></i>' . $head . '</div>';
111111
}
112112

113113
return $html;

modules/catalog/views/website.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="tems-center flex gap mt15">
4040
<?= Html::votes($item, 'item'); ?>
4141

42-
<div data-a11y-dialog-show="id-share">
42+
<div class="pointer" data-a11y-dialog-show="id-share">
4343
<svg class="icons gray-600">
4444
<use xlink:href="/assets/svg/icons.svg#share"></use>
4545
</svg>

resources/views/default/content/facets/topic-header.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</a>
4949
</div>
5050

51-
<div data-a11y-dialog-show="id-share">
51+
<div class="pointer" data-a11y-dialog-show="id-share">
5252
<svg class="icons gray-600">
5353
<use xlink:href="/assets/svg/icons.svg#share"></use>
5454
</svg>

resources/views/default/content/post/post-view.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@
135135
</a>
136136
<?php endif; ?>
137137

138-
<div data-a11y-dialog-show="id-share">
138+
<div class="pointer" data-a11y-dialog-show="id-share">
139139
<svg class="icons gray-600">
140140
<use xlink:href="/assets/svg/icons.svg#share"></use>
141141
</svg>
142142
</div>
143143

144-
<?= Html::favorite($post['post_id'], 'post', $post['tid'], 'text-2xl ml5'); ?>
144+
<?= Html::favorite($post['post_id'], 'post', $post['tid']); ?>
145145
</div>
146146
</div>
147147

resources/views/minimum/content/post/post-view.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
+ <?= __('app.read'); ?>
110110
</a>
111111
<?php endif; ?>
112-
<?= Html::favorite($post['post_id'], 'post', $post['tid'], 'text-2xl ml5'); ?>
112+
<?= Html::favorite($post['post_id'], 'post', $post['tid']); ?>
113113
</div>
114114
</div>
115115

0 commit comments

Comments
 (0)