From 31dc07c437c8252fc71ded12a319f5b26868794c Mon Sep 17 00:00:00 2001 From: Zaurbek Tsorojev Date: Thu, 2 Jun 2022 14:16:40 -0700 Subject: [PATCH] fix: workspace button styling --- pages/packages/[package]/versions/[version]/topics/[topic].tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/packages/[package]/versions/[version]/topics/[topic].tsx b/pages/packages/[package]/versions/[version]/topics/[topic].tsx index 7d338b8..fcd9e04 100644 --- a/pages/packages/[package]/versions/[version]/topics/[topic].tsx +++ b/pages/packages/[package]/versions/[version]/topics/[topic].tsx @@ -157,6 +157,9 @@ export default function TopicPage({ topicData }: Props) { color: '#1f2937', fontWeight: 600, textDecoration: 'none', + ...(examples.split(/\r\n|\r|\n/)?.length <= 2 + ? { padding: '4px 8px' } + : {}), }} target="_blank" >