#2083 marques d'entités

This commit is contained in:
2023-06-19 10:10:55 +02:00
parent d2da431abd
commit 58088eb64e
2 changed files with 39 additions and 2 deletions
+14
View File
@@ -639,6 +639,15 @@ section[role="main-content"]{
// line-height: $base-line *0.5; // line-height: $base-line *0.5;
// margin-bottom: $base-line / 2; // margin-bottom: $base-line / 2;
} }
nav.entities-hide-show{
position: absolute;
bottom: 1em;
span{
@include fontsans;
font-size: 0.882em;
cursor: pointer;
}
}
aside.index-tooltip{ aside.index-tooltip{
z-index:10; z-index:10;
margin-top: -1.75em; margin-top: -1.75em;
@@ -837,6 +846,7 @@ section[role="main-content"]{
span.mdi.index-item-icon{ span.mdi.index-item-icon{
font-size: 14px; font-size: 14px;
vertical-align: super; vertical-align: super;
line-height: 0;
} }
// span[role="pageBreak"]{ // span[role="pageBreak"]{
// display: block; // display: block;
@@ -924,6 +934,10 @@ section[role="main-content"]{
} }
} }
} }
&.entities-hidden{
span.mdi.index-item-icon{ display: none;}
}
} }
} }
+25 -2
View File
@@ -36,6 +36,23 @@
</div> </div>
</aside> </aside>
<nav class="entities-hide-show">
<span
v-if="entities_displayed"
@click.prevent="onCLickEntitiesDisplay"
@keyup.enter="onCLickEntitiesDisplay"
>
<span class="mdi mdi-eye-outline" /> Afficher les marques d'entités dans les textes
</span>
<span
v-if="!entities_displayed"
@click.prevent="onCLickEntitiesDisplay"
@keyup.enter="onCLickEntitiesDisplay"
>
<span class="mdi mdi-eye-off-outline" /> Masquer les marques d'entités dans les textes
</span>
</nav>
<!-- displayed on hover entity on texte --> <!-- displayed on hover entity on texte -->
<aside <aside
v-if="indexitem" v-if="indexitem"
@@ -65,7 +82,7 @@
</template> </template>
<!-- </transition> --> <!-- </transition> -->
<!-- default slot --> <!-- default slot -->
<div id="text"> <div id="text" :class="{ 'entities-displayed': !entities_displayed, 'entities-hidden': entities_displayed }">
<template v-if="texts.length"> <template v-if="texts.length">
<infinite-loading <infinite-loading
v-if="flattoc && center_scrolled" v-if="flattoc && center_scrolled"
@@ -190,7 +207,9 @@ export default {
// //
pagination: null, pagination: null,
// //
navopened: false navopened: false,
//
entities_displayed: false
}), }),
computed: { computed: {
...mapState({ ...mapState({
@@ -510,6 +529,10 @@ export default {
name: 'bibliographieItem', name: 'bibliographieItem',
params: { type: 'manifestations', uuid: this.biblio.uuid } params: { type: 'manifestations', uuid: this.biblio.uuid }
}) })
},
onCLickEntitiesDisplay (e) {
console.log('onCLickEntitiesDisplay')
this.entities_displayed = !this.entities_displayed
} }
} }
} }