mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-20 07:49:57 +00:00
ui: add tooltip for footer buttons
This commit is contained in:
parent
30eb95f1bd
commit
df9e4edde7
2 changed files with 12 additions and 7 deletions
|
@ -6,12 +6,17 @@ const buildTimeAgo = useTimeAgo(buildTime)
|
||||||
<template>
|
<template>
|
||||||
<footer p4 text-sm text-secondary-light flex="~ col">
|
<footer p4 text-sm text-secondary-light flex="~ col">
|
||||||
<div flex="~ gap2" items-center mb4>
|
<div flex="~ gap2" items-center mb4>
|
||||||
<button i-ri-sun-line dark:i-ri-moon-line text-lg @click="toggleDark()" />
|
<CommonTooltip content="Toggle theme">
|
||||||
|
<button flex i-ri-sun-line dark:i-ri-moon-line text-lg @click="toggleDark()" />
|
||||||
|
</CommonTooltip>
|
||||||
|
<CommonTooltip content="Zen mode">
|
||||||
<button
|
<button
|
||||||
|
flex
|
||||||
text-lg
|
text-lg
|
||||||
:class="isZenMode ? 'i-ri:layout-right-2-line' : 'i-ri:layout-right-line'"
|
:class="isZenMode ? 'i-ri:layout-right-2-line' : 'i-ri:layout-right-line'"
|
||||||
@click="toggleZenMode()"
|
@click="toggleZenMode()"
|
||||||
/>
|
/>
|
||||||
|
</CommonTooltip>
|
||||||
<NavSelectLanguage />
|
<NavSelectLanguage />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -20,7 +20,7 @@ const languageList = [
|
||||||
<template>
|
<template>
|
||||||
<CommonTooltip placement="bottom" content="Select Language">
|
<CommonTooltip placement="bottom" content="Select Language">
|
||||||
<CommonDropdown>
|
<CommonDropdown>
|
||||||
<button align-top>
|
<button flex>
|
||||||
<div i-ri:earth-line text-lg />
|
<div i-ri:earth-line text-lg />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue