[ADF-3357] text viewer fixes (#3800)

* text viewer fixes

* allow viewing 'css' and 'md' files as text
This commit is contained in:
Denys Vuika
2018-09-18 10:49:35 +01:00
committed by Eugenio Romano
parent 61de424bab
commit 9a9c3dbfbc
3 changed files with 4 additions and 1 deletions

View File

@@ -5,5 +5,7 @@
background-color: mat-color($background, background); background-color: mat-color($background, background);
overflow: hidden; overflow: hidden;
overflow-y: scroll; overflow-y: scroll;
height: 100%;
width: 100%;
} }
} }

View File

@@ -71,6 +71,7 @@
flex-flow: row wrap; flex-flow: row wrap;
margin: 0 auto; margin: 0 auto;
align-items: stretch; align-items: stretch;
height: 100%;
} }
} }

View File

@@ -234,7 +234,7 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
private extensions = { private extensions = {
image: ['png', 'jpg', 'jpeg', 'gif', 'bpm', 'svg'], image: ['png', 'jpg', 'jpeg', 'gif', 'bpm', 'svg'],
media: ['wav', 'mp4', 'mp3', 'webm', 'ogg'], media: ['wav', 'mp4', 'mp3', 'webm', 'ogg'],
text: ['txt', 'xml', 'js', 'html', 'json', 'ts'], text: ['txt', 'xml', 'js', 'html', 'json', 'ts', 'css', 'md'],
pdf: ['pdf'] pdf: ['pdf']
}; };