Skip to content

Commit

Permalink
fix(personnel): fusager suppr et modif personnel 767 766 (#651)
Browse files Browse the repository at this point in the history
Fix : La modification d'un personnel sur déclaration séjour n'était pas
pris en compte
Fix : Remise en place du scrool horizontal pour accéder au bouton
"supprimer"
  • Loading branch information
l-scherer authored Dec 5, 2024
2 parents f17f316 + fa60ddf commit 859764c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/frontend-usagers/src/components/DS/personnel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,11 @@ function addPersonne() {
modalPersonne.opened = true;
}
function editItem(item, index) {
function editItem(item) {
log.i("editItem - In", item);
if (props.modifiable) {
personnel.value = item;
indexCourant.value = index;
indexCourant.value = item.id;
modalPersonne.opened = true;
}
}
Expand Down
37 changes: 25 additions & 12 deletions packages/shared/src/components/Table/TableFull.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<template>
<TableUI
:on-update-item-by-page="onUpdateItemByPage"
:on-update-current-page="(p) => (currentPage = p)"
:items-by-page="itemByPage"
:total-items="filteredData?.length ?? 0"
:headers="h"
:title="title"
:displayed-data="displayedData"
:current-page="currentPage"
@click-row="onClickRow"
/>
<div class="table-container">
<TableUI
:on-update-item-by-page="onUpdateItemByPage"
:on-update-current-page="(p) => (currentPage = p)"
:items-by-page="itemByPage"
:total-items="filteredData?.length ?? 0"
:headers="h"
:title="title"
:displayed-data="displayedData"
:current-page="currentPage"
@click-row="onClickRow"
/>
</div>
</template>

<script setup>
Expand Down Expand Up @@ -228,4 +230,15 @@ onMounted(() => {
});
</script>
<style scoped></style>
<style scoped>
.table-container {
overflow-x: auto; /* Active le défilement horizontal */
-webkit-overflow-scrolling: touch; /* Défilement fluide sur mobile */
max-width: 100%; /* Assure que le conteneur ne dépasse pas la largeur disponible */
}
.table-container table {
width: 100%; /* Le tableau utilise tout l'espace disponible */
min-width: 800px; /* Largeur minimale pour forcer le scroll si nécessaire */
}
</style>

0 comments on commit 859764c

Please sign in to comment.