mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
Fix language select width calculation (#3201)
This commit is contained in:
parent
c701600081
commit
6d0f08f238
1 changed files with 1 additions and 4 deletions
|
|
@ -625,10 +625,7 @@ const CodeBlock = memo(
|
|||
<LanguageSelect
|
||||
value={currentLanguage}
|
||||
style={{
|
||||
alignContent: "middle",
|
||||
width: `${Math.max(3, (currentLanguage?.length || 5) + 1)}ch`,
|
||||
textAlign: "right",
|
||||
marginRight: 0,
|
||||
width: `calc(${currentLanguage?.length || 0}ch + 9px)`,
|
||||
}}
|
||||
onClick={(e) => {
|
||||
e.currentTarget.focus()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue