Adds mobile tooltips for Download page (#350)

* Adds mobile tooltips for Download page

* Switch to unspecified theme

Should default to dark, not sure if there's any other logic to it
This commit is contained in:
Soitora 2020-09-15 09:33:37 +02:00 committed by GitHub
parent 3e4515c460
commit 5cdffdc278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,19 @@
<template>
<div v-if="stable" class="buildTime">
<span :title="stablePublishExact">{{ stablePublishRelative }}</span>
<el-tooltip placement="top" open-delay="250">
<div slot="content">
<strong>{{ stablePublishExact }}</strong>
</div>
<span>{{ stablePublishRelative }}</span>
</el-tooltip>
</div>
<div v-else-if="preview" class="buildTime">
<span :title="previewPublishExact">{{ previewPublishRelative }}</span>
<el-tooltip placement="bottom-end" open-delay="250">
<div slot="content">
<strong>{{ previewPublishExact }}</strong>
</div>
<span>{{ previewPublishRelative }}</span>
</el-tooltip>
</div>
<span v-else>You need to specify props.</span>
</template>