Fix non-centered slider in illuminati

This commit is contained in:
thepaperpilot 2021-06-22 07:56:11 -05:00
parent 3b9395e484
commit d99020b422

View file

@ -1,7 +1,7 @@
<template>
<div class="field">
<span class="field-title" v-if="title">{{ title }}</span>
<tooltip :text="`${value}`">
<tooltip :text="`${value}`" :class="{ fullWidth: !title }">
<input type="range" :value="value" @input="e => $emit('change', parseInt(e.target.value))" :min="min" :max="max" />
</tooltip>
</div>
@ -20,4 +20,7 @@ export default {
</script>
<style scoped>
.fullWidth {
width: 100%;
}
</style>