feat: apply untranslated color setting to frontend display

- Use exportConfig.untranslatedColor for untranslated dish names in UI
- Ensures consistent color between export and frontend display
This commit is contained in:
2026-04-13 00:04:16 +08:00
parent 818792abac
commit 19695cc38b
+4 -4
View File
@@ -755,9 +755,9 @@ export default function RecipeTranslationPage() {
key={dish.id}
className="flex flex-col gap-0.5 text-sm"
>
<span className={dish.name.en ? "text-foreground" : "text-destructive"}>
{dish.name.zh}
</span>
<span style={{ color: dish.name.en ? undefined : exportConfig.untranslatedColor }}>
{dish.name.zh}
</span>
{dish.name.en && (
<span
className="text-xs text-muted-foreground">
@@ -788,7 +788,7 @@ export default function RecipeTranslationPage() {
key={dish.id}
className="flex flex-col gap-0.5"
>
<span className={dish.name.en ? "text-foreground" : "text-destructive"}>
<span style={{ color: dish.name.en ? undefined : exportConfig.untranslatedColor }}>
{dish.name.zh}
</span>
{dish.name.en && (