From 5eb412f6a41db53671e4afe06811345f5aa67f33 Mon Sep 17 00:00:00 2001 From: ubi de feo Date: Sat, 7 Dec 2024 08:56:49 +0100 Subject: [PATCH] Hide navigation dots (..) when navigation path is root. Signed-off-by: ubi de feo --- ui/arduino/views/components/file-list.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ui/arduino/views/components/file-list.js b/ui/arduino/views/components/file-list.js index 2767478..83e7d59 100644 --- a/ui/arduino/views/components/file-list.js +++ b/ui/arduino/views/components/file-list.js @@ -104,15 +104,18 @@ function generateFileList(source) { } return 0 }) + const parentNavigationDots = html`
emit(`navigate-${source}-parent`)} + style="cursor: pointer" + > + .. +
` + const list = html`
-
emit(`navigate-${source}-parent`)} - style="cursor: pointer" - > - .. -
+ ${source === 'disk' && state.diskNavigationPath != '/' ? parentNavigationDots : ''} + ${source === 'board' && state.boardNavigationPath != '/' ? parentNavigationDots : ''} ${state.creatingFile == source ? newFileItem : null} ${state.creatingFolder == source ? newFolderItem : null} ${files.map(FileItem)} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy