File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,13 @@ const Code = ({
124124 // Extract language identifier for display
125125 const langId = languageClass ?. substring ( 9 ) || language || "python" ;
126126 const displayLanguage = languageDisplayNames [ langId ] || langId ;
127+ const showLanguage = langId . toLowerCase ( ) !== "none" ;
127128
128129 const Header = (
129130 < div className = { classNames ( styles . Header , "code-block-header" ) } >
130- < span className = { styles . Language } > { displayLanguage } </ span >
131+ { showLanguage && (
132+ < span className = { styles . Language } > { displayLanguage } </ span >
133+ ) }
131134 </ div >
132135 ) ;
133136
Original file line number Diff line number Diff line change 44}
55
66.Header {
7- @apply flex items-center px-4 py-2 bg-gray-20 text-gray-70 text-xs font-medium tracking-wide rounded-t-md border-b border-gray-30;
7+ @apply flex items-center px-3 py-1 bg-gray-20 text-gray-70 text-xs font-medium tracking-wide rounded-t-md border-b border-gray-30;
8+ min-height : 2.5rem ;
89}
910
1011: global (.dark ) .Header {
You can’t perform that action at this time.
0 commit comments