Make read button work

This commit is contained in:
2025-11-06 14:27:06 +01:00
parent 75494b6529
commit 6bfd3ae2da
2 changed files with 17 additions and 10 deletions

View File

@@ -3,19 +3,20 @@
const props = defineProps({
icon: String,
legend: String
legend: String,
isSet: Boolean
});
const hovered = ref(false)
const computedIcon = computed(() => props.icon + (hovered.value ? "Fill" : ""));
const computedIcon = computed(() => props.icon + (hovered.value || props.isSet ? "Fill" : ""));
</script>
<template>
<div class="bigiconandlegend"
@mouseover="hovered = true"
@mouseout="hovered = false"
>
@mouseout="hovered = false">
<span class="bigicon" :title="props.legend">
<component :is="computedIcon"></component>
</span>
@@ -31,7 +32,7 @@
}
.bigiconandlegend:hover {
transform: scale(1.01);
transform: scale(1.03);
transition: ease-in-out 0.02s;
background-color: bulma-primary;
cursor: pointer;