Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Karasiq committed Oct 27, 2018
1 parent 4fdeb42 commit c91e2ed
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ class FoldersPanel(implicit context: AppContext,
lazy val folderFiles = FolderFileList(selectedFolder.map(_.files))

def renderTag(md: ModifierT*): TagT = {
val currentFileView = folderFiles.selectedFile.map[Frag] {
case Some(file) FileView(file)(context, folderContext, folderFiles.fileController)
case None ()
}

GridSystem.row(
GridSystem.col.responsive(12, 3, 3, 2)(folderTree),
GridSystem.col.responsive(12, 9, 5, 6)(folderFiles),
GridSystem.col.responsive(12, 12, 4, 4)(folderFiles.selectedFile.map[Frag] {
case Some(file) FileView(file)(context, folderContext, folderFiles.fileController)
case None ()
}),
GridSystem.col.responsive(12, 12, 4, 4)(currentFileView),
md
)
}
Expand Down

0 comments on commit c91e2ed

Please sign in to comment.