make left side of conversations clickable, à la birdsite

This commit is contained in:
emma 2022-12-08 19:24:22 +00:00
parent 235f3b2d94
commit 65511042e3
3 changed files with 9 additions and 1 deletions

View file

@ -593,6 +593,12 @@ const Status = {
window.scrollBy(0, rect.bottom - window.innerHeight + 50)
}
}
},
handleConversationClick() {
this.$router.push({
name: 'conversation',
params: { id: this.status.id }
})
}
},
watch: {

View file

@ -74,6 +74,7 @@
.left-side {
margin-right: var(--status-margin, $status-margin);
cursor: pointer;
}
.right-side {

View file

@ -125,6 +125,7 @@
<div
v-if="!noHeading"
class="left-side"
@click.self="handleConversationClick"
>
<a
:href="$router.resolve(userProfileLink).href"
@ -172,7 +173,7 @@
</h4>
<span class="nowrap">
<router-link
class="account-name"
class="account-name faint-link"
:title="status.user.screen_name_ui"
:to="userProfileLink"
>