yandere_fe/src/components/settings_modal/helpers/modified_icon.vue

47 lines
734 B
Vue
Raw Normal View History

2020-10-17 12:28:49 -07:00
<template>
<span
v-if="changed"
class="ModifiedIcon"
>
<Popover
trigger="hover"
>
<i
slot="trigger"
class="icon icon-wrench"
/>
<div
class="modified-tooltip"
slot="content"
>
{{ $t('settings.setting_changed') }}
</div>
</Popover>
</span>
</template>
<script>
import Popover from 'src/components/popover/popover.vue'
export default {
props: ['changed'],
components: { Popover }
}
</script>
<style lang="scss">
.ModifiedIcon {
display: inline-block;
position: relative;
.icon {
display: inline-block;
}
.modified-tooltip {
margin: 0.5em 1em;
min-width: 10em;
text-align: center;
}
}
</style>