diff --git a/client/src/ui/components/bd/setting/Colour.vue b/client/src/ui/components/bd/setting/Colour.vue index 115fc649..698ebe2c 100644 --- a/client/src/ui/components/bd/setting/Colour.vue +++ b/client/src/ui/components/bd/setting/Colour.vue @@ -13,10 +13,10 @@

{{setting.text}}

-
- +
{{setting.hint}}
@@ -26,7 +26,8 @@ data() { return { open: false, - colors: '#FFF' + colors: '#FFF', + topOffset: '35px' } }, components: { @@ -57,6 +58,15 @@ } }, methods: { + show() { + const offset = window.innerHeight - this.$refs.root.getBoundingClientRect().top - 340; + if (offset >= 0) { + this.topOffset = '35px'; + } else { + this.topOffset = 35 + offset > 35 ? '35px' : `${35 + offset}px`; + } + this.open = true; + }, pick(c) { this.change(this.rgbaString); },