Browse Source
Merge pull request #13067 from ArtemDzhereleiko/AD/bug-fix/markdown-source-code-overflow
Fixed scrolling markdown source code module
pull/13080/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/shared/models/js-function.models.ts
|
|
|
@ -141,7 +141,7 @@ export const loadModuleMarkdownSourceCode = (http: HttpClient, translate: Transl |
|
|
|
let sourceCode = `<div class="flex flex-col !pl-4"><h6>${resource.title}</h6><small>${translate.instant('js-func.source-code')}</small></div>\n\n`; |
|
|
|
return loadFunctionModuleSource(http, resource.link).pipe( |
|
|
|
map((source) => { |
|
|
|
sourceCode += '```javascript\n{:code-style="margin-left: -16px; margin-right: -16px;"}\n' + source + '\n```'; |
|
|
|
sourceCode += '```javascript\n{:code-style="margin-left: -16px; margin-right: -16px; max-height: 65vh;"}\n' + source + '\n```'; |
|
|
|
return sourceCode; |
|
|
|
}), |
|
|
|
catchError(err => { |
|
|
|
|