Skip to content

Commit a38f3b8

Browse files
authored
[docs-infra] Fix Display of Long Demo Code Blocks (#4046)
1 parent fc0ce9e commit a38f3b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/src/components/Demo/Demo.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,16 +228,21 @@
228228
.DemoSourceBrowser {
229229
@apply text-xs;
230230
cursor: text;
231+
display: flex;
231232

232-
& code {
233+
& pre {
233234
/* Different fonts may introduce vertical align issues */
234235
display: flex;
235236
/* Make sure selection highlight spans full container width in Safari */
236237
flex-grow: 1;
238+
}
239+
240+
& code {
237241
padding: 0.5rem 0;
238242
}
239243

240244
& code .frame {
245+
display: block;
241246
padding-left: 0.75rem;
242247
padding-right: 0.75rem;
243248
}

0 commit comments

Comments
 (0)