mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-11 06:00:15 -07:00
Diagrams: center Mermaid and PlantUML diagrams
This commit is contained in:
@@ -165,7 +165,8 @@ function RenderCodeImpl(props: RenderCodeImplProps) {
|
||||
sx={{
|
||||
whiteSpace: 'pre', // was 'break-spaces' before we implemented per-block scrolling
|
||||
mx: 0, p: 1.5, // this block gets a thicker border
|
||||
display: 'block',
|
||||
display: 'flex',
|
||||
justifyContent: (renderMermaid || renderPlantUML) ? 'center' : undefined,
|
||||
overflowX: 'auto',
|
||||
minWidth: 160,
|
||||
'&:hover > .overlay-buttons': { opacity: 1 },
|
||||
|
||||
Reference in New Issue
Block a user