add padding and remove unnecesarily duplicated request

This commit is contained in:
Krishan Bhasin 2025-11-27 13:41:38 +00:00
parent 7fb88c3601
commit dc0590ab5b
2 changed files with 2 additions and 7 deletions

View File

@ -82,6 +82,7 @@ const displayError = computed(() => {
background-color: var(--surfacePrimary);
color: var(--textSecondary);
padding: 1rem;
padding-top: 4em;
box-sizing: border-box;
}

View File

@ -393,13 +393,7 @@ const updatePreview = async () => {
if (fileStore.req.size > CSV_MAX_SIZE) {
csvError.value = t("files.csvTooLarge");
} else {
try {
const response = await fetch(api.getDownloadURL(fileStore.req, true));
csvContent.value = await response.text();
} catch (e: any) {
console.error("Failed to load CSV content:", e);
csvError.value = t("files.csvLoadFailed");
}
csvContent.value = fileStore.req.content ?? "";
}
}