mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3357] text viewer fixes (#3800)
* text viewer fixes * allow viewing 'css' and 'md' files as text
This commit is contained in:
committed by
Eugenio Romano
parent
61de424bab
commit
9a9c3dbfbc
@@ -5,5 +5,7 @@
|
||||
background-color: mat-color($background, background);
|
||||
overflow: hidden;
|
||||
overflow-y: scroll;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
@@ -71,6 +71,7 @@
|
||||
flex-flow: row wrap;
|
||||
margin: 0 auto;
|
||||
align-items: stretch;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -234,7 +234,7 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
private extensions = {
|
||||
image: ['png', 'jpg', 'jpeg', 'gif', 'bpm', 'svg'],
|
||||
media: ['wav', 'mp4', 'mp3', 'webm', 'ogg'],
|
||||
text: ['txt', 'xml', 'js', 'html', 'json', 'ts'],
|
||||
text: ['txt', 'xml', 'js', 'html', 'json', 'ts', 'css', 'md'],
|
||||
pdf: ['pdf']
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user