Skip to content
Snippets Groups Projects
Unverified Commit f1ea3c65 authored by github-automation-metabase's avatar github-automation-metabase Committed by GitHub
Browse files

Fix the distance between "Field to map to" and "required" (#46747) (#46759)

parent 7ff46f6f
No related branches found
No related tags found
No related merge requests found
...@@ -2,16 +2,13 @@ import { t } from "ttag"; ...@@ -2,16 +2,13 @@ import { t } from "ttag";
import Schemas from "metabase/entities/schemas"; import Schemas from "metabase/entities/schemas";
import { SchemaTableAndFieldDataSelector } from "metabase/query_builder/components/DataSelector"; import { SchemaTableAndFieldDataSelector } from "metabase/query_builder/components/DataSelector";
import { Text } from "metabase/ui";
import type Database from "metabase-lib/v1/metadata/Database"; import type Database from "metabase-lib/v1/metadata/Database";
import type Field from "metabase-lib/v1/metadata/Field"; import type Field from "metabase-lib/v1/metadata/Field";
import type Table from "metabase-lib/v1/metadata/Table"; import type Table from "metabase-lib/v1/metadata/Table";
import type { FieldId, TemplateTag } from "metabase-types/api"; import type { FieldId, TemplateTag } from "metabase-types/api";
import { import { ContainerLabel, InputContainer } from "./TagEditorParam.styled";
ContainerLabel,
ErrorSpan,
InputContainer,
} from "./TagEditorParam.styled";
export function FieldMappingSelect({ export function FieldMappingSelect({
tag, tag,
...@@ -36,7 +33,11 @@ export function FieldMappingSelect({ ...@@ -36,7 +33,11 @@ export function FieldMappingSelect({
<InputContainer> <InputContainer>
<ContainerLabel> <ContainerLabel>
{t`Field to map to`} {t`Field to map to`}
{tag.dimension == null && <ErrorSpan>{t`(required)`}</ErrorSpan>} {tag.dimension == null && (
<Text c="error" span={true} ml="sm">
{t`(required)`}
</Text>
)}
</ContainerLabel> </ContainerLabel>
{(!hasSelectedDimensionField || {(!hasSelectedDimensionField ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment