Skip to content

Commit

Permalink
title attributes added to various HTML elements
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Oct 6, 2024
1 parent 1417fdd commit 8d9a950
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/EmojiPicker.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button data-bs-toggle="modal" data-bs-target="#emojiModal" class="btn btn-outline-primary me-2 mt-2 btn-sm">
<button title="Add emoji to your post" data-bs-toggle="modal" data-bs-target="#emojiModal" class="btn btn-outline-primary me-2 mt-2 btn-sm">
<i class="bi bi-emoji-smile-fill"></i>
</button>

Expand Down
1 change: 1 addition & 0 deletions components/chat/ChatFeed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
class="btn btn-outline-primary me-2 mt-2 btn-sm"
data-bs-toggle="modal"
:data-bs-target="'#fileUploadModal' + $.uid"
title="Upload image to your post"
>
<i class="bi bi-file-earmark-image-fill"></i>
IMG
Expand Down
21 changes: 15 additions & 6 deletions components/chat/ChatMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="card-body row">

<!-- Author profile image -->
<div class="col-2 col-md-1 pfp-sizing">
<div class="col-2 col-md-1 pfp-sizing" title="Profile image and link to the profile">
<NuxtLink :to="'/profile/?id=' + String(showDomainOrFullAddress)">
<ProfileImage
class="img-fluid rounded-circle pfp-img force-circle"
Expand All @@ -16,22 +16,30 @@

<!-- post author and timestamp -->
<p class="card-subtitle mb-2 text-muted">
<NuxtLink class="link-without-color hover-color" :to="'/profile/?id=' + String(showDomainOrFullAddress)">
<NuxtLink
class="link-without-color hover-color"
:to="'/profile/?id=' + String(showDomainOrFullAddress)"
title="Go to profile page"
>
{{ showDomainOrAddress }}
</NuxtLink>
<span v-if="message?.createdAt && !isComment">
·
<NuxtLink class="link-without-color hover-color" :to="postUrl">
<NuxtLink
class="link-without-color hover-color"
:to="postUrl"
title="Time since post was created and link to the post page"
>
{{ timeSince }}
</NuxtLink>
</span>
<span v-if="message?.createdAt && isComment">
<span v-if="message?.createdAt && isComment" title="Time since post was created">
·
{{ timeSince }}
</span>
<span v-if="message?.url">
·
<a class="link-without-color hover-color" :href="getArweaveUrl" target="_blank">
<a class="link-without-color hover-color" :href="getArweaveUrl" target="_blank" title="Link to post stored on Arweave">
<span style="font-size: 0.9em;">ⓐ</span>
</a>
</span>
Expand Down Expand Up @@ -70,7 +78,7 @@
<p class="card-subtitle mt-3 text-muted">
<!-- Replies count -->
<NuxtLink v-if="isMainChatMessage" class="link-without-color hover-color" :to="postUrl">
<NuxtLink v-if="isMainChatMessage" class="link-without-color hover-color" :to="postUrl" title="See replies to this post">
<i class="bi bi-chat"></i>
{{ message.repliesCount }} replies
</NuxtLink>
Expand All @@ -82,6 +90,7 @@
:class="{ 'ms-3': isMainChatMessage }"
data-bs-toggle="modal"
:data-bs-target="'#deleteModal' + storageId"
title="Delete the post"
>
<i class="bi bi-trash" /> Delete
</span>
Expand Down
2 changes: 1 addition & 1 deletion components/navbars/NavbarDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</div>
</li>

<li class="nav-item cursor-pointer">
<li class="nav-item cursor-pointer" title="Toggle between light and dark mode">
<span class="nav-link" v-if="siteStore.getColorMode === 'dark'" @click="changeColorMode('light')">
<i class="bi bi-brightness-high"></i>
</span>
Expand Down
2 changes: 1 addition & 1 deletion components/referrals/ShareReferralLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
readonly
/>

<button class="btn btn-outline-secondary" type="button" id="button-addon2">
<button class="btn btn-outline-secondary" type="button" id="button-addon2" title="Copy to clipboard">
<i v-if="!copied" class="bi bi-clipboard"></i>
<i v-if="copied" class="bi bi-clipboard-check"></i>
</button>
Expand Down
2 changes: 1 addition & 1 deletion components/tenor/TenorGifSearch.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button data-bs-toggle="modal" data-bs-target="#gifModal" class="btn btn-outline-primary me-2 mt-2 btn-sm">
<button data-bs-toggle="modal" data-bs-target="#gifModal" class="btn btn-outline-primary me-2 mt-2 btn-sm" title="Add GIF to your post">
<i class="bi bi-file-earmark-image-fill"></i>
GIF
</button>
Expand Down

0 comments on commit 8d9a950

Please sign in to comment.