From 7f734b42b6d1b6d905d295d960a382cf1de9cfe1 Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Tue, 26 May 2026 13:18:05 +0200 Subject: [PATCH] Move save/import buttons to bottom-right of each card/panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inspector opt-groups: Save crop, Save text, Save style variation, Save volume each moved into an .opt-group-footer div (flex, justify-content: flex-end). Get Voices scraper cards: Import this voice moved into .vs-import-footer (full-width row, right-aligned) below the pill/link row. ElevenLabs cards: ↓ Clone moved into .el-vc-footer (full-width, right-aligned) with accent fill; ▶ Play stays inline with the body. Co-Authored-By: Claude Sonnet 4.6 --- static/app.js | 24 ++++++++++++++++-------- static/style.css | 17 +++++++++++------ 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/static/app.js b/static/app.js index 1b21f99..a61138f 100644 --- a/static/app.js +++ b/static/app.js @@ -854,11 +854,11 @@ function renderGetVoices() { ${audio}
${type}${language}${gender} - ${getVoice} ${audioLink} Source page
+ ${getVoice ? `` : ''} `; }).join('') + (more > 0 ? `

${more} more matches. Narrow the search or filters to see them.

` : ''); } @@ -4450,9 +4450,11 @@ function makeVoiceRow(v) {
- +
@@ -4461,6 +4463,8 @@ function makeVoiceRow(v) {
+
+
@@ -4499,10 +4503,12 @@ function makeVoiceRow(v) {
-
+
@@ -4513,11 +4519,13 @@ function makeVoiceRow(v) { -
+
Click the pencil to load waveform and tools.
@@ -6053,11 +6061,11 @@ loadSettings().then(() => {
${nm}
${tags}
${desc ? `
${_elEsc(desc)}
` : ''} +
+ +
-
- - ${prev ? `` : ''} -
+ ${prev ? `` : ''} `; } diff --git a/static/style.css b/static/style.css index 6b69738..6508c67 100644 --- a/static/style.css +++ b/static/style.css @@ -647,6 +647,8 @@ code { background: var(--panel); border-radius: 4px; padding: 1px 5px; font-fami .voice-source-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; } .voice-source-actions a, .voice-source-actions button { font-size: 12px; padding: 7px 9px; min-height: 32px; } .voice-source-pill { border: 1px solid var(--border); color: var(--subtext); border-radius: 999px; padding: 3px 7px; font-size: 12px; } +.vs-import-footer { display: flex; justify-content: flex-end; padding-top: 4px; margin-top: -4px; border-top: 1px solid var(--border); } +.vs-import-footer .btn-primary { font-size: 12px; padding: 7px 12px; } /* ── Integrations ───────────────────────────────────────────────────────── */ .integration-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } @@ -1156,6 +1158,7 @@ code { background: var(--panel); border-radius: 4px; padding: 1px 5px; font-fami /* Body: smooth height transition */ .opt-group-body { overflow: hidden; } .inspector-body .opt-group:not(.open) > .opt-group-body { display: none; } +.opt-group-footer { display: flex; justify-content: flex-end; padding: 8px 14px 12px; } .inspector-body .opt-group canvas.opt-wave { display: block; width: 100%; height: 72px; background: var(--bg); } .inspector-body .opt-group .opt-group-body > .opt-controls { padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; } @@ -1469,10 +1472,10 @@ code { background: var(--panel); border-radius: 4px; padding: 1px 5px; font-fami @keyframes elSpin { to { transform: rotate(360deg); } } .el-error { color: #e53e3e !important; } -.el-card-voice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); transition: background .12s; } +.el-card-voice { display: flex; align-items: stretch; gap: 10px; padding: 11px 13px 0; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); transition: background .12s; flex-wrap: wrap; } .el-card-voice:hover { background: var(--panel); } .el-vc-av { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: hsl(var(--elh, 220), 52%, 52%); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-top: 3px; } -.el-vc-body { flex: 1; min-width: 0; } +.el-vc-body { flex: 1; min-width: 0; padding-bottom: 10px; } .el-vc-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; } .el-vc-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; } .el-tag { font-size: 10px; padding: 1px 5px; border-radius: 3px; background: var(--panel); border: 1px solid var(--border); color: var(--subtext); white-space: nowrap; } @@ -1481,11 +1484,13 @@ code { background: var(--panel); border-radius: 4px; padding: 1px 5px; font-fami .el-free { color: #38a169; border-color: #38a169; background: transparent; } .el-feat { color: #d69e2e; border-color: #d69e2e; background: transparent; } .el-clones { opacity: .7; } -.el-vc-desc { font-size: 11px; color: var(--subtext); line-height: 1.4; } -.el-vc-btns { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; padding-top: 2px; } -.el-play, .el-clone { border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); font-size: 11px; padding: 4px 8px; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s; font-family: inherit; } +.el-vc-desc { font-size: 11px; color: var(--subtext); line-height: 1.4; margin-bottom: 6px; } +.el-vc-meta { margin-top: 4px; } +.el-play { border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); font-size: 11px; padding: 4px 10px; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s; font-family: inherit; } .el-play:hover { border-color: var(--accent); color: var(--accent); } -.el-clone:hover { border-color: #38a169; color: #38a169; } +.el-vc-footer { width: 100%; display: flex; justify-content: flex-end; padding: 6px 0 10px; border-top: 1px solid var(--border); margin-top: 4px; } +.el-clone { border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: #fff; font-size: 12px; padding: 5px 12px; cursor: pointer; white-space: nowrap; transition: opacity .15s; font-family: inherit; font-weight: 600; } +.el-clone:hover { opacity: .85; } .el-pager { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); } .el-pager-info { flex: 1; text-align: center; font-size: 12px; color: var(--subtext); }