Skip to content

Commit

Permalink
Remove the 'Clear' button, it wasn't useful.
Browse files Browse the repository at this point in the history
  • Loading branch information
rblank committed Sep 7, 2024
1 parent fbd1a50 commit 6b6a2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 2 additions & 5 deletions tdoc/common/static/styles/t-doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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';
}
Expand Down
3 changes: 0 additions & 3 deletions tdoc/common/static/tdoc-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@ for (const exec of document.querySelectorAll('div.tdoc-exec.highlight-sql')) {
<button class="tdoc-exec-run" title="Run${editable ? ' (Shift+Enter)' : ''}">\
</button>`))
.addEventListener('click', async () => { await tryExecute(exec); });
controls.appendChild(element(
`<button class="tdoc-exec-clear" title="Clear results"></button>`))
.addEventListener('click', () => { replaceResults(exec, []); });
}
if (editable && origText !== '') {
controls.appendChild(element(
Expand Down

0 comments on commit 6b6a2a7

Please sign in to comment.