diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue
index 58078200c..00758e7e4 100644
--- a/packages/client/src/components/MkNote.vue
+++ b/packages/client/src/components/MkNote.vue
@@ -821,6 +821,10 @@ defineExpose({
color: var(--fgHighlighted);
}
+ > i {
+ display: inline !important;
+ }
+
> .count {
display: inline;
margin: 0 0 0 8px;
diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue
index c26af1668..c006ebaff 100644
--- a/packages/client/src/components/MkNoteSub.vue
+++ b/packages/client/src/components/MkNoteSub.vue
@@ -506,6 +506,10 @@ function noteClick(e) {
color: var(--fgHighlighted);
}
+ > i {
+ display: inline !important;
+ }
+
> .count {
display: inline;
margin: 0 0 0 8px;
diff --git a/packages/client/src/components/MkRenoteButton.vue b/packages/client/src/components/MkRenoteButton.vue
index 4a8e329d0..b0fda56de 100644
--- a/packages/client/src/components/MkRenoteButton.vue
+++ b/packages/client/src/components/MkRenoteButton.vue
@@ -4,6 +4,7 @@
ref="buttonRef"
v-tooltip.noDelay.bottom="i18n.ts.renote"
class="button _button canRenote"
+ :class="{ renoted: hasRenotedBefore }"
@click="renote(false, $event)"
>
@@ -64,17 +65,18 @@ useTooltip(buttonRef, async (showing) => {
);
});
-const renote = async (viaKeyboard = false, ev?: MouseEvent) => {
+let hasRenotedBefore = $ref(false);
+os.api("notes/renotes", {
+ noteId: props.note.id,
+ userId: $i.id,
+ limit: 1,
+}).then((res) => {
+ hasRenotedBefore = res.length > 0;
+});
+
+const renote = (viaKeyboard = false, ev?: MouseEvent) => {
pleaseLogin();
- const renotes = await os.api("notes/renotes", {
- noteId: props.note.id,
- userId: $i.id,
- limit: 1,
- });
-
- const hasRenotedBefore = renotes.length > 0;
-
let buttonActions: Array