refactor: add tooltips for item title and detail in MainLayout
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
This commit is contained in:
parent
af792678dd
commit
1e9a5abc1c
1 changed files with 16 additions and 9 deletions
|
|
@ -367,12 +367,28 @@ onMounted(async () => {
|
||||||
<div class="col column text-caption q-pl-md ellipsis">
|
<div class="col column text-caption q-pl-md ellipsis">
|
||||||
<span class="block ellipsis full-width text-weight-bold">
|
<span class="block ellipsis full-width text-weight-bold">
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
|
<q-tooltip
|
||||||
|
anchor="top middle"
|
||||||
|
self="bottom middle"
|
||||||
|
:delay="300"
|
||||||
|
:offset="[10, 10]"
|
||||||
|
>
|
||||||
|
{{ item.title }}
|
||||||
|
</q-tooltip>
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
class="block ellipsis full-width text-stone"
|
class="block ellipsis full-width text-stone"
|
||||||
:class="{ 'text-weight-medium': !item.read }"
|
:class="{ 'text-weight-medium': !item.read }"
|
||||||
>
|
>
|
||||||
{{ item.detail }}
|
{{ item.detail }}
|
||||||
|
<q-tooltip
|
||||||
|
anchor="top middle"
|
||||||
|
self="bottom middle"
|
||||||
|
:delay="300"
|
||||||
|
:offset="[10, 10]"
|
||||||
|
>
|
||||||
|
{{ item.detail }}
|
||||||
|
</q-tooltip>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
|
|
@ -382,15 +398,6 @@ onMounted(async () => {
|
||||||
>
|
>
|
||||||
{{ moment(item.createdAt).fromNow() }}
|
{{ moment(item.createdAt).fromNow() }}
|
||||||
</span>
|
</span>
|
||||||
<q-tooltip
|
|
||||||
anchor="top middle"
|
|
||||||
self="bottom middle"
|
|
||||||
:delay="1000"
|
|
||||||
:offset="[10, 10]"
|
|
||||||
>
|
|
||||||
{{ item.title }}
|
|
||||||
{{ item.detail }}
|
|
||||||
</q-tooltip>
|
|
||||||
</q-item>
|
</q-item>
|
||||||
</section>
|
</section>
|
||||||
<section
|
<section
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue