Fixed code display overflow
This commit is contained in:
parent
d6e7e679a7
commit
3f82d2c39a
@ -4,7 +4,7 @@ import { CommonModule } from '@angular/common';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'app-code',
|
selector: 'app-code',
|
||||||
template: `
|
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 {
|
export class AppCodeComponent {
|
||||||
|
Loading…
Reference in New Issue
Block a user