<tr class="mobile-view" [ngClass]="{ 'selected-file': selected, 'focused-file': focus }">
  <td class="file-image" *ngIf="!file.thumbnail"><span class="mdi mdi-{{ file.icon }} file-{{ file.icon }}"></span></td>
  <td class="file-image" *ngIf="file.thumbnail">
    <app-blob-viewer [blob]="file.thumbnail" type="image"></app-blob-viewer>
  </td>
  <td class="file-name" [attr.colspan]="file.ext !== 'dir' ? '2' : '1'">
    <div class="file-name-content">
      <div>
        <span>{{ file.name }}</span>
      </div>
      <div *ngIf="file.ext !== 'dir'" class="file-size-date">
        <span class="mat-small">{{ file.createdAt | date: 'short' }} - {{ file.size | formatBytes }}</span>
      </div>
    </div>
  </td>
  <td class="dir-arrow" *ngIf="file.ext === 'dir'" (click)="onNavigate()">
    <mat-icon>keyboard_arrow_right</mat-icon>
  </td>
</tr>
