add formatting to importer descriptions, change reporting group limit for months

This commit is contained in:
Gregor Vostrak
2024-06-10 18:01:32 +02:00
parent fadcd042c0
commit 91cb6ab087
3 changed files with 19 additions and 17 deletions

View File

@@ -119,7 +119,7 @@ function updateReporting() {
function getOptimalGroupingOption(diff: number): 'day' | 'week' | 'month' {
if (diff <= 31) {
return 'day';
} else if (diff <= 365) {
} else if (diff <= 200) {
return 'week';
} else {
return 'month';

View File

@@ -196,7 +196,9 @@ const showResultModal = ref(false);
<div class="font-semibold text-muted py-1">
Instructions:
</div>
{{ currentImporterDescription }}
<div
class="max-w-2xl"
v-html="currentImporterDescription"></div>
</div>
</div>