- router.push(notePage(e))"
- @focusfooter="footerEl.focus()"
- >
+ router.push(notePage(e))"
+ @focusfooter="footerEl.focus()" @expanded="(e) => setPostExpanded(e)">
@@ -461,18 +429,30 @@ function readPromo() {
isDeleted.value = true;
}
+let postIsExpanded = false;
+
+function setPostExpanded(val: boolean) {
+ postIsExpanded = val;
+}
+
const accessibleLabel = computed(() => {
let label = `${props.note.user.username}; `;
if (props.note.renote) {
label += `${i18n.t("renoted")} ${props.note.renote.user.username}; `;
if (props.note.renote.cw) {
label += `content warning: ${props.note.renote.cw}; `;
+ if (postIsExpanded) {
+ label += `${props.note.renote.text}; `;
+ }
} else {
label += `${props.note.renote.text}; `;
}
} else {
if (props.note.cw) {
label += `${i18n.t("cw")}: ${props.note.cw}; `;
+ if (postIsExpanded) {
+ label += `${props.note.text}; `;
+ }
} else {
label += `${props.note.text}; `;
}
diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue
index b162bca0b..5a46a319c 100644
--- a/packages/client/src/components/MkSubNoteContent.vue
+++ b/packages/client/src/components/MkSubNoteContent.vue
@@ -54,6 +54,7 @@
v-model="showContent"
:note="note"
v-on:keydown="focusFooter"
+ v-on:update:model-value="(val) => emit('expanded', val)"
/>
- {{
- i18n.t("translatedFrom", {
- x: translation.sourceLang,
- })
- }}:
+ {{
+ i18n.t("translatedFrom", {
+ x: translation.sourceLang,
+ })
+ }}:
-
+
();
const cwButton = ref();