mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 23:47:50 +08:00
feat: pc select email highlight (#83)
This commit is contained in:
@@ -16,7 +16,7 @@ const { toClipboard } = useClipboard()
|
|||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
const isMobile = useIsMobile()
|
const isMobile = useIsMobile()
|
||||||
|
|
||||||
const { jwt, settings, openSettings } = useGlobalState()
|
const { jwt, settings, openSettings, themeSwitch } = useGlobalState()
|
||||||
const autoRefresh = ref(false)
|
const autoRefresh = ref(false)
|
||||||
const data = ref([])
|
const data = ref([])
|
||||||
const timer = ref(null)
|
const timer = ref(null)
|
||||||
@@ -219,7 +219,8 @@ onMounted(async () => {
|
|||||||
</div>
|
</div>
|
||||||
<div style="overflow: scroll; max-height: 80vh;">
|
<div style="overflow: scroll; max-height: 80vh;">
|
||||||
<n-list hoverable clickable>
|
<n-list hoverable clickable>
|
||||||
<n-list-item v-for="row in data" v-bind:key="row.id" @click="() => clickRow(row)">
|
<n-list-item v-for="row in data" v-bind:key="row.id" @click="() => clickRow(row)"
|
||||||
|
:class="curMail && row.id == curMail.id ? (themeSwitch ? 'overlay overlay-dark-backgroud' : 'overlay overlay-light-backgroud') : ''">
|
||||||
<n-thing class="center" :title="row.subject" style="overflow: scroll">
|
<n-thing class="center" :title="row.subject" style="overflow: scroll">
|
||||||
<template #description>
|
<template #description>
|
||||||
<n-tag type="info">
|
<n-tag type="info">
|
||||||
@@ -386,4 +387,18 @@ onMounted(async () => {
|
|||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay-dark-backgroud {
|
||||||
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay-light-backgroud {
|
||||||
|
background-color: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user