We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b2083 commit ac04aadCopy full SHA for ac04aad
webview-ui/src/components/common/CodeBlock.tsx
@@ -625,10 +625,7 @@ const CodeBlock = memo(
625
<LanguageSelect
626
value={currentLanguage}
627
style={{
628
- alignContent: "middle",
629
- width: `${Math.max(3, (currentLanguage?.length || 5) + 1)}ch`,
630
- textAlign: "right",
631
- marginRight: 0,
+ width: `calc(${currentLanguage?.length || 0}ch + 9px)`,
632
}}
633
onClick={(e) => {
634
e.currentTarget.focus()
0 commit comments