Set code container overflow to auto

This commit is contained in:
David Vogel 2023-05-18 16:38:27 +02:00
parent a10028559e
commit b73eb2ecec
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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