Add code block language header and improve styles (#2403)
* add code block language header and improve styles * improve codeblock fallback text * move floating expand button to code block header * reduce code font size
This commit is contained in:
@@ -157,12 +157,12 @@ export function RenderElement({ attributes, element, children }: RenderElementPr
|
||||
<Text as="pre" className={css.CodeBlock} {...attributes}>
|
||||
<Scroll
|
||||
direction="Horizontal"
|
||||
variant="Secondary"
|
||||
variant="SurfaceVariant"
|
||||
size="300"
|
||||
visibility="Hover"
|
||||
hideTrack
|
||||
>
|
||||
<div className={css.CodeBlockInternal()}>{children}</div>
|
||||
<div className={css.CodeBlockInternal}>{children}</div>
|
||||
</Scroll>
|
||||
</Text>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user