From 6b6a2a7b43f06f5ae6dade0ee5366f3104bcbce2 Mon Sep 17 00:00:00 2001 From: Remy Blank Date: Sat, 7 Sep 2024 21:25:09 +0200 Subject: [PATCH] Remove the 'Clear' button, it wasn't useful. --- tdoc/common/static/styles/t-doc.css | 7 ++----- tdoc/common/static/tdoc-sql.js | 3 --- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tdoc/common/static/styles/t-doc.css b/tdoc/common/static/styles/t-doc.css index cc2335b..ee317c5 100644 --- a/tdoc/common/static/styles/t-doc.css +++ b/tdoc/common/static/styles/t-doc.css @@ -64,10 +64,10 @@ div.tdoc-exec-controls { margin-left: 0.3rem; } div.tdoc-exec-controls button { - aspect-ratio: 1; + width: 1.8rem; + height: 1.8rem; border-radius: 0.25rem; border: 1px solid var(--pst-color-border); - padding: 0.3rem; background-color: var(--pst-color-surface); font: var(--fa-font-solid); transition: background-color .3s; @@ -84,9 +84,6 @@ div.tdoc-exec-controls * { div.tdoc-exec-controls button.tdoc-exec-run::before { content: '\f04b'; } -div.tdoc-exec-controls button.tdoc-exec-clear::before { - content: '\f12d'; -} div.tdoc-exec-controls button.tdoc-exec-reset::before { content: '\f2ea'; } diff --git a/tdoc/common/static/tdoc-sql.js b/tdoc/common/static/tdoc-sql.js index 0c35b5b..a92b16c 100644 --- a/tdoc/common/static/tdoc-sql.js +++ b/tdoc/common/static/tdoc-sql.js @@ -197,9 +197,6 @@ for (const exec of document.querySelectorAll('div.tdoc-exec.highlight-sql')) { `)) .addEventListener('click', async () => { await tryExecute(exec); }); - controls.appendChild(element( - ``)) - .addEventListener('click', () => { replaceResults(exec, []); }); } if (editable && origText !== '') { controls.appendChild(element(