Spaces:
Running
Running
Commit ·
ff50d21
1
Parent(s): c6bc456
Tiny pencil icon for rename instead of button
Browse files- index.html +1 -2
index.html
CHANGED
|
@@ -1290,11 +1290,10 @@ async function renderVoicesPage() {
|
|
| 1290 |
return `<div class="voice-tile">
|
| 1291 |
<div class="voice-tile-date">${date}</div>
|
| 1292 |
<div class="voice-tile-avatar" style="background:${v.color}">${v.name[0].toUpperCase()}</div>
|
| 1293 |
-
<div class="voice-tile-name"
|
| 1294 |
<div class="voice-tile-file">${v.fileName}</div>
|
| 1295 |
<div class="voice-tile-actions">
|
| 1296 |
<button class="voice-tile-btn use" onclick="selectVoiceAndGo('${v.id}')">Use Voice</button>
|
| 1297 |
-
<button class="voice-tile-btn del" style="background:transparent;color:var(--text-muted);border:1px solid var(--border)" onclick="renameVoice('${v.id}','${escaped}')">Rename</button>
|
| 1298 |
<button class="voice-tile-btn del" onclick="deleteVoiceFromPage('${v.id}')">Remove</button>
|
| 1299 |
</div>
|
| 1300 |
</div>`;
|
|
|
|
| 1290 |
return `<div class="voice-tile">
|
| 1291 |
<div class="voice-tile-date">${date}</div>
|
| 1292 |
<div class="voice-tile-avatar" style="background:${v.color}">${v.name[0].toUpperCase()}</div>
|
| 1293 |
+
<div class="voice-tile-name">${v.name} <span onclick="event.stopPropagation();renameVoice('${v.id}','${escaped}')" style="cursor:pointer;opacity:0.4;font-size:12px" title="Rename">✎</span></div>
|
| 1294 |
<div class="voice-tile-file">${v.fileName}</div>
|
| 1295 |
<div class="voice-tile-actions">
|
| 1296 |
<button class="voice-tile-btn use" onclick="selectVoiceAndGo('${v.id}')">Use Voice</button>
|
|
|
|
| 1297 |
<button class="voice-tile-btn del" onclick="deleteVoiceFromPage('${v.id}')">Remove</button>
|
| 1298 |
</div>
|
| 1299 |
</div>`;
|