+ | {{ `${costs.name}, ${costs.firstName}` }} | @@ -24,7 +25,7 @@ | {{ new Intl.NumberFormat(locale, { style: 'currency', currency: 'EUR' }).format(costs.costs['total']) }} | -+ |
@@ -11,7 +11,7 @@
v-for="label in labels"
:key="label"
scope="col"
- class="text-[11px] font-bold uppercase leading-4 tracking-[1.5px] last:text-right"
+ class="px-1 text-[11px] font-bold uppercase leading-4 tracking-[1.5px] last:text-right"
:class="style"
>
{{ label }}
@@ -34,23 +34,27 @@ const props = withDefaults(
labels: string[];
headerTextPosition?: string;
print?: boolean;
+ addStyles?: string;
}>(),
{
headerTextPosition: 'left',
- print: false
+ print: false,
+ addStyles: ''
}
);
const style = computed(() => {
+ let returnStyle = props.addStyles;
switch (props.headerTextPosition) {
case 'left':
- return 'text-left';
+ returnStyle += ' text-left';
case 'lmr':
- return 'first:text-left last:text-right text-center';
+ returnStyle += ' first:text-left last:text-right text-center';
case 'lfr':
- return 'first:text-left text-right';
+ returnStyle += ' first:text-left text-right';
default:
- return 'text-left';
+ returnStyle += ' text-left';
}
+ return returnStyle.trimStart();
});
From add1db5a2c99f159b74f92825950ff8582518b42 Mon Sep 17 00:00:00 2001
From: MalibusParty <76796838+MalibusParty@users.noreply.github.com>
Date: Wed, 28 Feb 2024 11:52:23 +0100
Subject: [PATCH 12/20] fixed popup in costs table
---
src/Resources/src/components/costs/CostsTableActions.vue | 6 +++++-
src/Resources/src/components/misc/Popover.vue | 5 ++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/Resources/src/components/costs/CostsTableActions.vue b/src/Resources/src/components/costs/CostsTableActions.vue
index 14adc5576..b820cbb7d 100644
--- a/src/Resources/src/components/costs/CostsTableActions.vue
+++ b/src/Resources/src/components/costs/CostsTableActions.vue
@@ -6,7 +6,11 @@
:btn-text="''"
@click="hideUser(username)"
/>
- (),
{
translateXMax: 'default',
translateXMin: 'default',
breakpointWidth: 1200,
- overflowHidden: true
+ overflowHidden: true,
+ popupStyles: ''
}
);
From e6196148f12779d5e1f425f25e2b3c22c09e53a0 Mon Sep 17 00:00:00 2001
From: MalibusParty <76796838+MalibusParty@users.noreply.github.com>
Date: Wed, 28 Feb 2024 13:28:47 +0100
Subject: [PATCH 13/20] fixed styling for timeslot view
---
src/Resources/src/components/costs/CostsTable.vue | 1 +
src/Resources/src/components/misc/Table.vue | 12 +++++++++---
.../src/components/timeslots/SlotActions.vue | 2 --
.../src/components/timeslots/SlotCreationPanel.vue | 2 +-
src/Resources/src/views/TimeSlots.vue | 5 ++---
5 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/Resources/src/components/costs/CostsTable.vue b/src/Resources/src/components/costs/CostsTable.vue
index ca0956890..fdad8d422 100644
--- a/src/Resources/src/components/costs/CostsTable.vue
+++ b/src/Resources/src/components/costs/CostsTable.vue
@@ -3,6 +3,7 @@
:labels="columnNames"
:header-text-position="'lfr'"
:add-styles="'first:sticky first:left-0 first:bg-[#f4f7f9] last:pl-4'"
+ :overflow-table="true"
>
|