fix markdown codeblocks overflowing container (#333)

This commit is contained in:
Edmundo Biglia 2021-06-09 06:02:47 -03:00 committed by GitHub
parent 0209ed5a26
commit e16992dbc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,8 +109,12 @@
@apply py-[0.1rem] px-2 rounded-lg text-sm align-middle font-mono bg-gray-200;
}
.markdown pre {
@apply flex overflow-hidden;
}
.markdown pre > code {
@apply block p-4 rounded-lg text-sm align-middle font-mono;
@apply p-4 rounded-lg text-sm align-middle font-mono flex-1 overflow-auto;
/* Match the editor colors */
background-color: #282c34;
color: #abb2bf;