Set code container overflow to auto
This commit is contained in:
parent
a10028559e
commit
b73eb2ecec
@ -5,6 +5,7 @@
|
|||||||
<style>
|
<style>
|
||||||
.d3c-1683741854 {
|
.d3c-1683741854 {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
overflow: auto;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
|
@ -47,7 +47,7 @@ func (c *Code) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|||||||
}
|
}
|
||||||
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
|
||||||
{
|
{
|
||||||
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-1683741854 {\n\t\tborder-radius: 4px;\n\t\tpadding: 0.5em;\n\t\tmargin: 1em 0;\n\t\tfont-family: monospace;\n\t\tbackground-color: var(--d3c-color-background);\n\t\tcolor: var(--d3c-color-text);\n\t}\n", Attr: []vugu.VGAttribute(nil)})
|
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-1683741854 {\n\t\tborder-radius: 4px;\n\t\toverflow: auto;\n\t\tpadding: 0.5em;\n\t\tmargin: 1em 0;\n\t\tfont-family: monospace;\n\t\tbackground-color: var(--d3c-color-background);\n\t\tcolor: var(--d3c-color-text);\n\t}\n", Attr: []vugu.VGAttribute(nil)})
|
||||||
}
|
}
|
||||||
vgout.AppendCSS(vgn)
|
vgout.AppendCSS(vgn)
|
||||||
return vgout
|
return vgout
|
||||||
|
Loading…
Reference in New Issue
Block a user