mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-17 07:59:24 -03:00
chore: remove keyboard navigation UI elements and related code
- Delete static/css/components/keyboard-nav.css entirely - Remove @import of keyboard-nav.css from style.css - Remove keyboard-nav-hint divs from controls.html and recipes.html - Clean up all keyboard.* translation keys from 10 locale files The actual keyboard scrolling handlers (PageUp/PageDown in infiniteScroll.js and VirtualScroller.js) are kept as they provide core scroll functionality.
This commit is contained in:
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "Dieser Tag existiert bereits"
|
"duplicate": "Dieser Tag existiert bereits"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "Tastatur-Navigation:",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "Eine Seite nach oben scrollen",
|
|
||||||
"pageDown": "Eine Seite nach unten scrollen",
|
|
||||||
"home": "Zum Anfang springen",
|
|
||||||
"end": "Zum Ende springen"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "Initialisierung",
|
"title": "Initialisierung",
|
||||||
"message": "Ihr Arbeitsbereich wird vorbereitet...",
|
"message": "Ihr Arbeitsbereich wird vorbereitet...",
|
||||||
|
|||||||
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "This tag already exists"
|
"duplicate": "This tag already exists"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "Keyboard Navigation:",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "Scroll up one page",
|
|
||||||
"pageDown": "Scroll down one page",
|
|
||||||
"home": "Jump to top",
|
|
||||||
"end": "Jump to bottom"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "Initializing",
|
"title": "Initializing",
|
||||||
"message": "Preparing your workspace...",
|
"message": "Preparing your workspace...",
|
||||||
|
|||||||
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "Esta etiqueta ya existe"
|
"duplicate": "Esta etiqueta ya existe"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "Navegación por teclado:",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "Desplazar hacia arriba una página",
|
|
||||||
"pageDown": "Desplazar hacia abajo una página",
|
|
||||||
"home": "Saltar al inicio",
|
|
||||||
"end": "Saltar al final"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "Inicializando",
|
"title": "Inicializando",
|
||||||
"message": "Preparando tu espacio de trabajo...",
|
"message": "Preparando tu espacio de trabajo...",
|
||||||
|
|||||||
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "Ce tag existe déjà"
|
"duplicate": "Ce tag existe déjà"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "Navigation au clavier :",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "Défiler d'une page vers le haut",
|
|
||||||
"pageDown": "Défiler d'une page vers le bas",
|
|
||||||
"home": "Aller en haut",
|
|
||||||
"end": "Aller en bas"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "Initialisation",
|
"title": "Initialisation",
|
||||||
"message": "Préparation de votre espace de travail...",
|
"message": "Préparation de votre espace de travail...",
|
||||||
|
|||||||
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "תגית זו כבר קיימת"
|
"duplicate": "תגית זו כבר קיימת"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "ניווט במקלדת:",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "גלול עמוד אחד למעלה",
|
|
||||||
"pageDown": "גלול עמוד אחד למטה",
|
|
||||||
"home": "קפוץ להתחלה",
|
|
||||||
"end": "קפוץ לסוף"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "מאתחל",
|
"title": "מאתחל",
|
||||||
"message": "מכין את סביבת העבודה שלך...",
|
"message": "מכין את סביבת העבודה שלך...",
|
||||||
|
|||||||
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "このタグは既に存在します"
|
"duplicate": "このタグは既に存在します"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "キーボードナビゲーション:",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "1ページ上にスクロール",
|
|
||||||
"pageDown": "1ページ下にスクロール",
|
|
||||||
"home": "トップにジャンプ",
|
|
||||||
"end": "ボトムにジャンプ"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "初期化中",
|
"title": "初期化中",
|
||||||
"message": "ワークスペースを準備中...",
|
"message": "ワークスペースを準備中...",
|
||||||
|
|||||||
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "이 태그는 이미 존재합니다"
|
"duplicate": "이 태그는 이미 존재합니다"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "키보드 내비게이션:",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "한 페이지 위로 스크롤",
|
|
||||||
"pageDown": "한 페이지 아래로 스크롤",
|
|
||||||
"home": "맨 위로 이동",
|
|
||||||
"end": "맨 아래로 이동"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "초기화 중",
|
"title": "초기화 중",
|
||||||
"message": "작업공간을 준비하고 있습니다...",
|
"message": "작업공간을 준비하고 있습니다...",
|
||||||
|
|||||||
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "Этот тег уже существует"
|
"duplicate": "Этот тег уже существует"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "Навигация с клавиатуры:",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "Прокрутить на страницу вверх",
|
|
||||||
"pageDown": "Прокрутить на страницу вниз",
|
|
||||||
"home": "Перейти к началу",
|
|
||||||
"end": "Перейти к концу"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "Инициализация",
|
"title": "Инициализация",
|
||||||
"message": "Подготовка вашего рабочего пространства...",
|
"message": "Подготовка вашего рабочего пространства...",
|
||||||
|
|||||||
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "该标签已存在"
|
"duplicate": "该标签已存在"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "键盘导航:",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "向上一页滚动",
|
|
||||||
"pageDown": "向下一页滚动",
|
|
||||||
"home": "跳到顶部",
|
|
||||||
"end": "跳到底部"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "初始化",
|
"title": "初始化",
|
||||||
"message": "正在准备你的工作空间...",
|
"message": "正在准备你的工作空间...",
|
||||||
|
|||||||
@@ -1424,15 +1424,6 @@
|
|||||||
"duplicate": "此標籤已存在"
|
"duplicate": "此標籤已存在"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard": {
|
|
||||||
"navigation": "鍵盤導覽:",
|
|
||||||
"shortcuts": {
|
|
||||||
"pageUp": "向上捲動一頁",
|
|
||||||
"pageDown": "向下捲動一頁",
|
|
||||||
"home": "跳至頂部",
|
|
||||||
"end": "跳至底部"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initialization": {
|
"initialization": {
|
||||||
"title": "初始化",
|
"title": "初始化",
|
||||||
"message": "正在準備您的工作區...",
|
"message": "正在準備您的工作區...",
|
||||||
|
|||||||
@@ -1,96 +0,0 @@
|
|||||||
/* Keyboard navigation indicator and help */
|
|
||||||
.keyboard-nav-hint {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
position: relative;
|
|
||||||
width: 32px;
|
|
||||||
height: 32px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background: var(--card-bg);
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
color: var(--text-color);
|
|
||||||
cursor: help;
|
|
||||||
transition: var(--transition-base);
|
|
||||||
margin-left: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.keyboard-nav-hint:hover {
|
|
||||||
background: var(--lora-accent);
|
|
||||||
color: white;
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: var(--shadow-sm);
|
|
||||||
}
|
|
||||||
|
|
||||||
.keyboard-nav-hint i {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tooltip styling */
|
|
||||||
.tooltip {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip .tooltiptext {
|
|
||||||
visibility: hidden;
|
|
||||||
width: 240px;
|
|
||||||
background-color: var(--lora-surface);
|
|
||||||
color: var(--text-color);
|
|
||||||
text-align: center;
|
|
||||||
border-radius: var(--border-radius-xs);
|
|
||||||
padding: 8px;
|
|
||||||
position: absolute;
|
|
||||||
z-index: 9999; /* Ensure tooltip appears above cards */
|
|
||||||
right: 120%; /* Position tooltip to the left of the icon */
|
|
||||||
top: 50%; /* Vertically center */
|
|
||||||
transform: translateY(-15%); /* Vertically center */
|
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 0.3s;
|
|
||||||
box-shadow: var(--shadow-lg);
|
|
||||||
border: 1px solid var(--lora-border);
|
|
||||||
font-size: 0.85em;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip .tooltiptext::after {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 50%; /* Vertically center arrow */
|
|
||||||
left: 100%; /* Arrow on the right side */
|
|
||||||
margin-top: -5px;
|
|
||||||
border-width: 5px;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: transparent transparent transparent var(--lora-border); /* Arrow points right */
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip:hover .tooltiptext {
|
|
||||||
visibility: visible;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Keyboard shortcuts table */
|
|
||||||
.keyboard-shortcuts {
|
|
||||||
width: 100%;
|
|
||||||
border-collapse: collapse;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.keyboard-shortcuts td {
|
|
||||||
padding: 4px;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.keyboard-shortcuts td:first-child {
|
|
||||||
font-weight: bold;
|
|
||||||
width: 40%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.key {
|
|
||||||
display: inline-block;
|
|
||||||
background: var(--bg-color);
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
border-radius: 3px;
|
|
||||||
padding: 1px 5px;
|
|
||||||
font-size: 0.8em;
|
|
||||||
box-shadow: var(--shadow-xs);
|
|
||||||
}
|
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
@import 'components/initialization.css';
|
@import 'components/initialization.css';
|
||||||
@import 'components/progress-panel.css';
|
@import 'components/progress-panel.css';
|
||||||
@import 'components/duplicates.css'; /* Add duplicates component */
|
@import 'components/duplicates.css'; /* Add duplicates component */
|
||||||
@import 'components/keyboard-nav.css'; /* Add keyboard navigation component */
|
|
||||||
@import 'components/statistics.css'; /* Add statistics component */
|
@import 'components/statistics.css'; /* Add statistics component */
|
||||||
@import 'components/sidebar.css'; /* Add sidebar component */
|
@import 'components/sidebar.css'; /* Add sidebar component */
|
||||||
@import 'components/media-viewer.css';
|
@import 'components/media-viewer.css';
|
||||||
|
|||||||
@@ -100,30 +100,6 @@
|
|||||||
<span id="doctorStatusBadge" class="doctor-status-badge hidden" aria-hidden="true"></span>
|
<span id="doctorStatusBadge" class="doctor-status-badge hidden" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="keyboard-nav-hint tooltip">
|
|
||||||
<i class="fas fa-keyboard"></i>
|
|
||||||
<span class="tooltiptext">
|
|
||||||
<span>{{ t('keyboard.navigation') }}</span>
|
|
||||||
<table class="keyboard-shortcuts">
|
|
||||||
<tr>
|
|
||||||
<td><span class="key">Page Up</span></td>
|
|
||||||
<td>{{ t('keyboard.shortcuts.pageUp') }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><span class="key">Page Down</span></td>
|
|
||||||
<td>{{ t('keyboard.shortcuts.pageDown') }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><span class="key">Home</span></td>
|
|
||||||
<td>{{ t('keyboard.shortcuts.home') }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><span class="key">End</span></td>
|
|
||||||
<td>{{ t('keyboard.shortcuts.end') }}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -137,30 +137,6 @@
|
|||||||
<span id="doctorStatusBadge" class="doctor-status-badge hidden" aria-hidden="true"></span>
|
<span id="doctorStatusBadge" class="doctor-status-badge hidden" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="keyboard-nav-hint tooltip">
|
|
||||||
<i class="fas fa-keyboard"></i>
|
|
||||||
<span class="tooltiptext">
|
|
||||||
<span>{{ t('keyboard.navigation') }}</span>
|
|
||||||
<table class="keyboard-shortcuts">
|
|
||||||
<tr>
|
|
||||||
<td><span class="key">Page Up</span></td>
|
|
||||||
<td>{{ t('keyboard.shortcuts.pageUp') }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><span class="key">Page Down</span></td>
|
|
||||||
<td>{{ t('keyboard.shortcuts.pageDown') }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><span class="key">Home</span></td>
|
|
||||||
<td>{{ t('keyboard.shortcuts.home') }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><span class="key">End</span></td>
|
|
||||||
<td>{{ t('keyboard.shortcuts.end') }}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user