Merge pull request #30078 from overleaf/ae-workbench-code-blocks

Update code block styles

GitOrigin-RevId: b8a871ba7eb429bb5a359c823d5da0ed6717c021
This commit is contained in:
Mathias Jakobsen
2025-12-04 08:55:50 +00:00
committed by Copybot
parent 2aeb788e3f
commit ff8e9394f3

View File

@@ -8,7 +8,8 @@ export const CopyToClipboard = memo<{
content: string content: string
tooltipId: string tooltipId: string
kind?: 'text' | 'icon' kind?: 'text' | 'icon'
}>(({ content, tooltipId, kind = 'icon' }) => { unfilled?: boolean
}>(({ content, tooltipId, kind = 'icon', unfilled = false }) => {
const { t } = useTranslation() const { t } = useTranslation()
const [copied, setCopied] = useState(false) const [copied, setCopied] = useState(false)
@@ -49,6 +50,7 @@ export const CopyToClipboard = memo<{
accessibilityLabel={t('copy')} accessibilityLabel={t('copy')}
className="copy-button" className="copy-button"
icon={copied ? 'check' : 'content_copy'} icon={copied ? 'check' : 'content_copy'}
unfilled={unfilled}
/> />
)} )}
</OLTooltip> </OLTooltip>