mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: make displayName primary in ParameterLabel component (#9158)
This commit is contained in:
@@ -120,6 +120,11 @@ const useStyles = makeStyles((theme) => ({
|
||||
marginBottom: theme.spacing(2),
|
||||
},
|
||||
|
||||
"& p:only-child": {
|
||||
marginTop: 0,
|
||||
marginBottom: 0,
|
||||
},
|
||||
|
||||
"& ul, & ol": {
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
|
||||
@@ -43,8 +43,8 @@ const ParameterLabel: FC<ParameterLabelProps> = ({ id, parameter }) => {
|
||||
|
||||
{hasDescription ? (
|
||||
<Stack spacing={0}>
|
||||
<span className={styles.labelCaption}>{displayName}</span>
|
||||
<MemoizedMarkdown className={styles.labelPrimary}>
|
||||
<span className={styles.labelPrimary}>{displayName}</span>
|
||||
<MemoizedMarkdown className={styles.labelCaption}>
|
||||
{parameter.description}
|
||||
</MemoizedMarkdown>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user