We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e53b5d + 31dc07c commit 11ede14Copy full SHA for 11ede14
pages/packages/[package]/versions/[version]/topics/[topic].tsx
@@ -157,6 +157,9 @@ export default function TopicPage({ topicData }: Props) {
157
color: '#1f2937',
158
fontWeight: 600,
159
textDecoration: 'none',
160
+ ...(examples.split(/\r\n|\r|\n/)?.length <= 2
161
+ ? { padding: '4px 8px' }
162
+ : {}),
163
}}
164
target="_blank"
165
>
0 commit comments