Fixed code display overflow

This commit is contained in:
Cagatay Civici 2022-11-23 10:00:51 +03:00
parent d6e7e679a7
commit 3f82d2c39a

View File

@ -4,7 +4,7 @@ import { CommonModule } from '@angular/common';
@Component({
selector: 'app-code',
template: `
<pre class="surface-ground p-5 border-round mb-3 overflow-auto"><code class="-mt-4 p-0 line-height-3 block" [ngStyle]="{'font-family': 'monaco, Consolas, monospace'}"><ng-content></ng-content></code></pre>
<pre class="surface-ground p-5 border-round mb-3"><code class="-mt-4 p-0 line-height-3 block overflow-auto" [ngStyle]="{'font-family': 'monaco, Consolas, monospace'}"><ng-content></ng-content></code></pre>
`
})
export class AppCodeComponent {