Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<i class="fa fa-remove">&nbsp;</i>
</a>
</div>
<div [style]="'max-height: 500px; padding: 0px; ' + dynamicOverflow()" class="panel-body">
<div [style]="'max-height: 500px; padding: 0px; overflow: scroll'" class="panel-body">
<ul class="treeview in collapse show">
<ng-container *ngIf="fileInput.format === 'application/zip'">
<ds-file-tree-view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ export class FileDescriptionComponent {
return this.fileInput?.format === 'text/html';
}

/**
* Show scrollbar in the `.txt` preview, but it should be hidden in the other formats.
*/
public dynamicOverflow() {
return (this.isTxt() || this.isHtml()) ? 'overflow: scroll' : 'overflow: hidden';
}

/**
* Supported Preview formats are: `text/plain`, `text/html`, `application/zip`
*/
Expand Down