mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-26 10:06:17 +00:00
Made slider tooltips appear below the slider
This commit is contained in:
parent
f23541f3a6
commit
0ead4e8ce0
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<span class="field-title" v-if="title">{{ title }}</span>
|
<span class="field-title" v-if="title">{{ title }}</span>
|
||||||
<Tooltip :display="`${value}`" :class="{ fullWidth: !title }">
|
<Tooltip :display="`${value}`" :class="{ fullWidth: !title }" :direction="Direction.Down">
|
||||||
<input type="range" v-model="value" :min="min" :max="max" />
|
<input type="range" v-model="value" :min="min" :max="max" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
import { computed, toRefs, unref } from "vue";
|
import { computed, toRefs, unref } from "vue";
|
||||||
import Tooltip from "features/tooltips/Tooltip.vue";
|
import Tooltip from "features/tooltips/Tooltip.vue";
|
||||||
import "components/common/fields.css";
|
import "components/common/fields.css";
|
||||||
|
import { Direction } from "util/common";
|
||||||
|
|
||||||
const _props = defineProps<{
|
const _props = defineProps<{
|
||||||
title?: string;
|
title?: string;
|
||||||
|
|
Loading…
Reference in a new issue