Skip to content

Commit

Permalink
Merge branch 'fix/hide-navigation-dots' into feature/shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
ubidefeo committed Dec 9, 2024
2 parents c6ec180 + 5eb412f commit e9c8a2e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ui/arduino/views/components/file-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,18 @@ function generateFileList(source) {
}
return 0
})
const parentNavigationDots = html`<div class="item"
onclick=${() => emit(`navigate-${source}-parent`)}
style="cursor: pointer"
>
..
</div>`

const list = html`
<div class="file-list">
<div class="list">
<div class="item"
onclick=${() => emit(`navigate-${source}-parent`)}
style="cursor: pointer"
>
..
</div>
${source === 'disk' && state.diskNavigationPath != '/' ? parentNavigationDots : ''}
${source === 'board' && state.boardNavigationPath != '/' ? parentNavigationDots : ''}
${state.creatingFile == source ? newFileItem : null}
${state.creatingFolder == source ? newFolderItem : null}
${files.map(FileItem)}
Expand Down

0 comments on commit e9c8a2e

Please sign in to comment.