#61 Add comments to dynamic vue
This commit is contained in:
parent
4b37d85483
commit
75b492004b
1 changed files with 9 additions and 2 deletions
|
|
@ -70,20 +70,21 @@
|
|||
}}</span>
|
||||
</button>
|
||||
<button
|
||||
v-if="activeTab === 'static'"
|
||||
id="toggle-comments"
|
||||
:aria-pressed="isCommentsOpen"
|
||||
class="btn btn--transparent btn--outline"
|
||||
data-icon="comment"
|
||||
@click="isCommentsOpen = !isCommentsOpen"
|
||||
>
|
||||
<span class="sr-only">Afficher les commentaires</span>
|
||||
<span class="sr-only">{{ isCommentsOpen ? 'Masquer' : 'Afficher' }} les commentaires</span>
|
||||
</button>
|
||||
</template>
|
||||
<Comments v-if="isCommentsOpen" @show-draft-marker="showDraftMarker" />
|
||||
</Dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import Comments from "../../comments/Comments.vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
import Dialog from "primevue/dialog";
|
||||
import DynamicView from "./DynamicView.vue";
|
||||
|
|
@ -116,4 +117,10 @@ watch(isOpen, (newValue) => {
|
|||
.dialog__inner {
|
||||
padding: var(--space-16);
|
||||
}
|
||||
.with-comments .dialog__inner {
|
||||
margin-right: var(--dialog-comments-w, 20rem);
|
||||
}
|
||||
#comments-container {
|
||||
top: var(--dialog-header-h);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue