|
1 | 1 | <div class="card rounded-4 mb-3"> |
2 | | - {#if (typeof themeSettings.postCoverImageEnabled === 'undefined' ? true : themeSettings.postCoverImageEnabled) && post.thumbnailUrl} |
| 2 | + {#if (typeof themeSettings.postCoverImageEnabled === "undefined" ? true : themeSettings.postCoverImageEnabled) && post.thumbnailUrl} |
3 | 3 | <a href="/post/{post.url}"> |
4 | 4 | <div |
5 | 5 | style=" |
|
19 | 19 | <div class="card-body"> |
20 | 20 | <div class="row mb-3 justify-content-center"> |
21 | 21 | <div class="col"> |
22 | | - <a class="card-title text-black" href="/post/{post.url}"> |
| 22 | + <a class="card-title text-black focus-ring rounded" href="/post/{post.url}"> |
23 | 23 | <h3 class="mb-0 d-inline-block text-break"> |
24 | 24 | {truncate(post.title, 100)}{@html post.title.length > 100 |
25 | 25 | ? "…" |
|
30 | 30 | <div class="col-auto"> |
31 | 31 | {#if post.category.title !== "-"} |
32 | 32 | <a |
33 | | - class="badge bg-secondary text-dark rounded-pill" |
| 33 | + class="badge text-bg-secondary text-decoration-none rounded-pill focus-ring" |
34 | 34 | href="/?category={post.category.url}" |
35 | 35 | use:tooltip={[$_("buttons.filter"), { placement: "bottom" }]}> |
36 | 36 | {post.category.title} |
|
43 | 43 | {@html post.text} |
44 | 44 | </div> |
45 | 45 | </div> |
46 | | - <div |
47 | | - class="card-footer d-flex align-items-center justify-content-between"> |
| 46 | + <div class="card-footer d-flex align-items-center justify-content-between"> |
48 | 47 | {#if detail} |
49 | | - {#if typeof themeSettings.postViewCountEnabled === 'undefined' ? true : themeSettings.postViewCountEnabled} |
| 48 | + {#if typeof themeSettings.postViewCountEnabled === "undefined" ? true : themeSettings.postViewCountEnabled} |
50 | 49 | <ul class="m-0 p-0 text-muted"> |
51 | 50 | <li class="list-inline"> |
52 | 51 | <div |
53 | 52 | class="list-inline-item px-1" |
54 | | - use:tooltip={[$_("components.post.view"), { placement: "bottom" }]}> |
| 53 | + use:tooltip={[ |
| 54 | + $_("components.post.view"), |
| 55 | + { placement: "bottom" }, |
| 56 | + ]}> |
55 | 57 | <i class="fas fa-eye me-2"></i> |
56 | 58 | {post.views} |
57 | 59 | </div> |
|
63 | 65 |
|
64 | 66 | <div> |
65 | 67 | <Date time={post.date} /> |
66 | | - <a href="/player/{post.writer.username}" |
67 | | - hidden="{typeof themeSettings.postAuthorImageEnabled === 'undefined' ? false : !themeSettings.postAuthorImageEnabled}"> |
| 68 | + <a |
| 69 | + href="/player/{post.writer.username}" |
| 70 | + class="d-inline-block rounded focus-ring rounded-circle ms-2" |
| 71 | + hidden={typeof themeSettings.postAuthorImageEnabled === "undefined" |
| 72 | + ? false |
| 73 | + : !themeSettings.postAuthorImageEnabled}> |
68 | 74 | <img |
69 | 75 | src="https://minotar.net/avatar/{post.writer.username}" |
70 | 76 | alt={post.writer.username} |
71 | 77 | width="32" |
72 | 78 | height="32" |
73 | 79 | use:tooltip={[post.writer.username, { placement: "bottom" }]} |
74 | | - class="rounded-circle ms-2" /> |
| 80 | + class="rounded-circle" /> |
75 | 81 | </a> |
76 | 82 | </div> |
77 | 83 | {:else} |
78 | | - {#if typeof themeSettings.postReadMoreButtonEnabled === 'undefined' ? true : themeSettings.postReadMoreButtonEnabled} |
79 | | - <a href="/post/{post.url}"> |
| 84 | + {#if typeof themeSettings.postReadMoreButtonEnabled === "undefined" ? true : themeSettings.postReadMoreButtonEnabled} |
| 85 | + <a class="h6 mb-0 p-0 btn btn-link text-decoration-none focus-ring" href="/post/{post.url}"> |
80 | 86 | {$_("components.post.read-more")} |
| 87 | + <i class="fas fa-caret-right ms-1"></i> |
81 | 88 | </a> |
82 | 89 | {:else} |
83 | 90 | <div></div> |
84 | 91 | {/if} |
85 | 92 |
|
86 | 93 | <div> |
87 | 94 | <Date time={post.date} /> |
88 | | - <a href="/player/{post.writer.username}" |
89 | | - hidden="{typeof themeSettings.postAuthorImageEnabled === 'undefined' ? false : !themeSettings.postAuthorImageEnabled}"> |
| 95 | + <a |
| 96 | + class="d-inline-block rounded focus-ring rounded-circle ms-2" |
| 97 | + href="/player/{post.writer.username}" |
| 98 | + hidden={typeof themeSettings.postAuthorImageEnabled === "undefined" |
| 99 | + ? false |
| 100 | + : !themeSettings.postAuthorImageEnabled}> |
90 | 101 | <img |
91 | 102 | src="https://minotar.net/avatar/{post.writer.username}" |
92 | 103 | alt={post.writer.username} |
93 | 104 | width="32" |
94 | 105 | height="32" |
95 | 106 | use:tooltip={[post.writer.username, { placement: "bottom" }]} |
96 | | - class="rounded-circle ms-2" /> |
| 107 | + class="rounded-circle" /> |
97 | 108 | </a> |
98 | 109 | </div> |
99 | 110 | {/if} |
|
0 commit comments