upd: pointer on clickToOpen-able parts of notes

This commit is contained in:
ShittyKopper 2023-10-30 08:30:37 +03:00
parent 4af8bbb5c0
commit a796c8663b
7 changed files with 17 additions and 6 deletions

View file

@ -49,7 +49,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<article v-else :class="$style.article" @contextmenu.stop="onContextmenu">
<div v-if="appearNote.channel" :class="$style.colorBar" :style="{ background: appearNote.channel.color }"></div>
<MkAvatar :class="$style.avatar" :user="appearNote.user" link preview/>
<div :class="$style.main" @click="defaultStore.state.clickToOpen ? noteclick(appearNote.id) : undefined">
<div :class="[$style.main, { [$style.clickToOpen]: defaultStore.state.clickToOpen }]" @click="defaultStore.state.clickToOpen ? noteclick(appearNote.id) : undefined">
<MkNoteHeader :note="appearNote" :mini="true" v-on:click.stop/>
<MkInstanceTicker v-if="showTicker" :instance="appearNote.user.instance"/>
<div style="container-type: inline-size;">
@ -852,7 +852,6 @@ function readPromo() {
}
.cw {
cursor: default;
display: block;
margin: 0;
padding: 0;
@ -1096,4 +1095,8 @@ function readPromo() {
padding: 0 6px;
opacity: .8;
}
.clickToOpen {
cursor: pointer;
}
</style>