Skip to content

Commit f9cc6cd

Browse files
committed
pdf-server: panel Reset/Clear-all as icon buttons, keep tooltips
1 parent fbef319 commit f9cc6cd

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

examples/pdf-server/mcp-app.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@
162162
<div class="annotation-panel-header">
163163
<span class="annotation-panel-title">Annotations (<span id="annotation-panel-count">0</span>)</span>
164164
<div class="annotation-panel-header-actions">
165-
<button id="annotation-panel-reset" class="annotation-panel-reset" title="Revert to what's in the PDF file">Reset</button>
166-
<button id="annotation-panel-clear-all" class="annotation-panel-clear-all" title="Remove everything, including items from the PDF file">Clear all</button>
165+
<button id="annotation-panel-reset" class="annotation-panel-reset" title="Revert to what's in the PDF file"><svg width="14" height="14" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M2 6a4 4 0 1 1 1.2 2.85"/><path d="M2 9V6h3"/></svg></button>
166+
<button id="annotation-panel-clear-all" class="annotation-panel-clear-all" title="Remove everything, including items from the PDF file"><svg width="14" height="14" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><path d="M2 3h8M4.5 3V2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5v1M5 5.5v3M7 5.5v3M3 3l.5 7a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1L9 3"/></svg></button>
167167
<button id="annotation-panel-close" class="annotation-panel-close" title="Close panel">&#x2715;</button>
168168
</div>
169169
</div>

examples/pdf-server/src/mcp-app.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,10 +903,11 @@ body {
903903
background: transparent;
904904
color: var(--text100);
905905
cursor: pointer;
906-
font-size: 0.7rem;
907906
border-radius: 4px;
908-
padding: 2px 6px;
909-
white-space: nowrap;
907+
padding: 4px;
908+
display: flex;
909+
align-items: center;
910+
justify-content: center;
910911
}
911912
.annotation-panel-reset:hover {
912913
color: var(--text000);

0 commit comments

Comments
 (0)