Skip to content

Commit 11ede14

Browse files
authored
Merge pull request #108 from datacamp/fix/button-styling
[CT-3408] Fix workspace button styling
2 parents 6e53b5d + 31dc07c commit 11ede14

File tree

1 file changed

+3
-0
lines changed
  • pages/packages/[package]/versions/[version]/topics

1 file changed

+3
-0
lines changed

Diff for: pages/packages/[package]/versions/[version]/topics/[topic].tsx

+3
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ export default function TopicPage({ topicData }: Props) {
157157
color: '#1f2937',
158158
fontWeight: 600,
159159
textDecoration: 'none',
160+
...(examples.split(/\r\n|\r|\n/)?.length <= 2
161+
? { padding: '4px 8px' }
162+
: {}),
160163
}}
161164
target="_blank"
162165
>

0 commit comments

Comments
 (0)