web/ProcessingQueueItem: localize the error code

& fix status text line break
This commit is contained in:
wukko
2025-05-14 14:58:22 +06:00
parent bb177d8c81
commit 68e8b3369d

View File

@@ -93,7 +93,7 @@
return formatFileSize(info.resultFile?.size);
case "error":
return !retrying ? info.errorCode : $t("queue.state.retrying");
return !retrying ? $t(`error.${info.errorCode}`) : $t("queue.state.retrying");
case "waiting":
return $t("queue.state.waiting");
@@ -266,6 +266,10 @@
display: flex;
}
.status-text {
line-break: normal;
}
/*
margin is used instead of gap cuz queued state doesn't have an icon.
margin is applied only to the visible icon, so there's no awkward gap.