tidy(ui): use × instead of translation string

This commit is contained in:
psychedelicious 2024-07-23 08:46:45 +10:00
parent 7edefbefff
commit 818045f678
2 changed files with 2 additions and 3 deletions

View File

@ -1654,7 +1654,6 @@
"warningNoTile": "a {{base_model}} tile controlnet required by this feature", "warningNoTile": "a {{base_model}} tile controlnet required by this feature",
"warningNoTileOrUpscaleModel": "an upscaler model and {{base_model}} tile controlnet required by this feature", "warningNoTileOrUpscaleModel": "an upscaler model and {{base_model}} tile controlnet required by this feature",
"warningNoUpscaleModel": "an upscaler model required by this feature", "warningNoUpscaleModel": "an upscaler model required by this feature",
"x": "x"
}, },
"ui": { "ui": {
"tabs": { "tabs": {

View File

@ -11,7 +11,7 @@ export const UpscaleSizeDetails = () => {
const outputSizeText = useMemo(() => { const outputSizeText = useMemo(() => {
if (upscaleInitialImage) { if (upscaleInitialImage) {
const { width, height } = getOutputImageSize(upscaleInitialImage); const { width, height } = getOutputImageSize(upscaleInitialImage);
return `${t('upscaling.outputImageSize')}: ${width} ${t('upscaling.x')} ${height}`; return `${t('upscaling.outputImageSize')}: ${width}×${height}`;
} }
}, [upscaleInitialImage, t]); }, [upscaleInitialImage, t]);
@ -22,7 +22,7 @@ export const UpscaleSizeDetails = () => {
return ( return (
<Flex direction="column"> <Flex direction="column">
<Text variant="subtext" fontWeight="bold"> <Text variant="subtext" fontWeight="bold">
{t('upscaling.currentImageSize')}: {upscaleInitialImage.width} {t('upscaling.x')} {upscaleInitialImage.height} {t('upscaling.currentImageSize')}: {upscaleInitialImage.width}×{upscaleInitialImage.height}
</Text> </Text>
<Text variant="subtext" fontWeight="bold"> <Text variant="subtext" fontWeight="bold">
{outputSizeText} {outputSizeText}