better cartouch css

This commit is contained in:
Bachir Soussi Chiadmi 2025-06-03 16:20:53 +02:00
parent f35493ea90
commit f6292d8ad1
3 changed files with 17 additions and 5 deletions

View File

@ -342,7 +342,7 @@ div.loading{
div.concernement-cartouche-icons{
margin-bottom: 1em;
h2{
font-weight: 400;
font-weight: 500;
font-size: 1.512em;
// &.faded{
// font-weight: 100;

View File

@ -531,7 +531,7 @@ export default {
</script>
<template>
<CartoucheLayout ref="cartouche_layout" :cid="cid" @main_scrolled="onMainScrolled">
<CartoucheLayout ref="cartouche_layout" :cid="cid" :eid="eid" @main_scrolled="onMainScrolled">
<template v-slot:header>
<div class="entite">
<!-- TODO update entite with revisions -->

View File

@ -9,13 +9,14 @@ import { mdiHeadphones } from '@mdi/js';
import ContentEditable from '@components/editable/ContentEditable.vue';
export default {
props: ['cid'],
props: ['cid','eid'],
emits: ['main_scrolled'],
data(){
return {
headphones_path: mdiHeadphones,
mainscrolled: false,
headerreduced: false,
entite: false
}
},
created () {
@ -51,6 +52,17 @@ export default {
}
},
deep: true
},
eid: {
handler (n, o) {
console.log(`TerrainDeVie watch eid o:${o}, n:${n}`);
if (n) {
this.entite = true;
}else{
this.entite = false;
}
},
deep: true
}
},
methods: {
@ -79,8 +91,8 @@ export default {
<ContentEditable
tag="h2"
:value="concernement.title"
:class="{ ellipsed: headerreduced }"
:contenteditable="concernement.can_update"
:class="{ ellipsed: entite }"
:contenteditable="(concernement.can_update && !entite)"
:data="{
entitytype: 'node',
bundle: 'concernement',