From 93001780432e198cd0a6332adafd616248ed461e Mon Sep 17 00:00:00 2001 From: Jordan Dalby Date: Mon, 28 Oct 2024 15:46:21 +0000 Subject: [PATCH] Fixed border-radius on code blocks --- client/src/components/snippets/FullCodeBlock.tsx | 1 + client/src/components/snippets/PreviewCodeBlock.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/client/src/components/snippets/FullCodeBlock.tsx b/client/src/components/snippets/FullCodeBlock.tsx index bb25805..1efd951 100644 --- a/client/src/components/snippets/FullCodeBlock.tsx +++ b/client/src/components/snippets/FullCodeBlock.tsx @@ -56,6 +56,7 @@ const FullCodeBlock: React.FC = ({ {` .syntax-highlighter-full { overflow: auto !important; + border-radius: 0.5rem; } .syntax-highlighter-full ::selection { diff --git a/client/src/components/snippets/PreviewCodeBlock.tsx b/client/src/components/snippets/PreviewCodeBlock.tsx index 9d7794a..d46aeb2 100644 --- a/client/src/components/snippets/PreviewCodeBlock.tsx +++ b/client/src/components/snippets/PreviewCodeBlock.tsx @@ -61,6 +61,7 @@ const PreviewCodeBlock: React.FC = ({ min-height: ${visibleHeight}px !important; max-height: ${visibleHeight}px !important; overflow: hidden !important; + border-radius: 0.5rem; } .syntax-highlighter-preview ::selection {