Feat: allow to disable questions (and to enable them again), fix #256

This commit is contained in:
Pieter Vander Vennet 2024-10-08 22:37:11 +02:00
parent f8ef32f123
commit 93ebdd8e16
8 changed files with 238 additions and 76 deletions

View file

@ -9,17 +9,17 @@
export let open = new UIEventSource(false)
export let dotsSize = `w-6 h-6`
export let dotsPosition = `top-0 right-0`
export let hideBackground= false
export let hideBackground: boolean = false
let menuPosition = ``
if(dotsPosition.indexOf("left-0") >= 0){
if (dotsPosition.indexOf("left-0") >= 0) {
menuPosition = "left-0"
}else{
} else {
menuPosition = `right-0`
}
if(dotsPosition.indexOf("top-0") > 0){
if (dotsPosition.indexOf("top-0") > 0) {
menuPosition += " bottom-0"
}else{
} else {
menuPosition += ` top-0`
}
@ -49,7 +49,7 @@
}
:global(.dots-menu > path) {
fill: var(--interactive-background);
fill: var(--button-background-hover);
transition: fill 350ms linear;
cursor: pointer;
@ -74,7 +74,7 @@
}
.transition-background {
transition: background-color 150ms linear;
transition: background-color 150ms linear;
}
.transition-background.collapsed {