Skip to content

Commit 31dc07c

Browse files
committed
fix: workspace button styling
1 parent bfe4557 commit 31dc07c

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
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)