style(sqllab): restore Template Parameters modal styling (#35965)

This commit is contained in:
Richard Fogaca Nienkotter
2025-11-10 12:51:12 -03:00
committed by GitHub
parent 63dfd95aa2
commit ae63f64771

View File

@@ -36,6 +36,14 @@ const StyledConfigEditor = styled(ConfigEditor)`
}
`;
const StyledParagraph = styled.p`
margin-top: 0;
`;
const Code = styled.code`
color: ${({ theme }) => theme.colorPrimary};
`;
export type TemplateParamsEditorProps = {
queryEditorId: string;
language: 'yaml' | 'json';
@@ -65,13 +73,11 @@ const TemplateParamsEditor = ({
const modalBody = (
<div>
<p>
{t('Assign a set of parameters as')}
<code>JSON</code>
{t('below (example:')}
<code>{'{"my_table": "foo"}'}</code>
{t('), and they become available in your SQL (example:')}
<code>SELECT * FROM {'{{ my_table }}'} </code>) {t('by using')}&nbsp;
<StyledParagraph>
{t('Assign a set of parameters as')} <Code>JSON</Code>{' '}
{t('below (example:')} <Code>{'{"my_table": "foo"}'}</Code>
{t('), and they become available in your SQL (example:')}{' '}
<Code>SELECT * FROM {'{{ my_table }}'} </Code>) {t('by using')}&nbsp;
<a
href="https://superset.apache.org/sqllab.html#templating-with-jinja"
target="_blank"
@@ -80,7 +86,7 @@ const TemplateParamsEditor = ({
{t('Jinja templating')}
</a>{' '}
{t('syntax.')}
</p>
</StyledParagraph>
<StyledConfigEditor
mode={language}
minLines={25}