From cdad2907cbe58dfd37e77c4245ad169e73c91d54 Mon Sep 17 00:00:00 2001 From: Local Dev Date: Sun, 27 Sep 2026 18:21:55 +0200 Subject: [PATCH] feat(pdf-editor): the five things you open a PDF to do, named and in front MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Select, Text, Highlight, Draw, Sign — labelled, in that order, at the head of the toolbar. Each one leads a kit rather than hiding it: the shapes sit behind Draw, underline and strike-through behind Highlight, and nothing is offered twice. Draw arms the pen, which is what Draw means when there is one button for it. The names drop out below 1180px, where five of them would start pushing the zoom and colour controls off the end. --- bundled-addons/pdf-editor/addon.json | 2 +- bundled-addons/pdf-editor/editor.css | 4 +++- bundled-addons/pdf-editor/editor.html | 21 ++++++++++++--------- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/bundled-addons/pdf-editor/addon.json b/bundled-addons/pdf-editor/addon.json index 321cc4f8..c6331792 100644 --- a/bundled-addons/pdf-editor/addon.json +++ b/bundled-addons/pdf-editor/addon.json @@ -1,7 +1,7 @@ { "id": "pdf-editor", "name": "PDF Editor", - "version": "0.7.0", + "version": "0.8.0", "description": "Open a PDF in a full tab: read it, mark it up with highlight, underline, strike-through, pen, shapes, arrows, text and a drawn signature, then move, resize, restyle or delete anything you placed. Reorder, rotate or drop pages, fill in form fields, redact for real, and save a new copy. Build a PDF from pictures, one page each, or join several PDFs into one. Marks are written into the saved file as real PDF content. The original is never touched.", "author": "Silent Mode", "icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTYgMmg4bDYgNnYxMmEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY0YTIgMiAwIDAgMSAyLTJ6IiBmaWxsPSIjZGMyNjI2Ii8+PHBhdGggZD0iTTE0IDJ2Nmg2eiIgZmlsbD0iIzk5MWIxYiIvPjx0ZXh0IHg9IjEyIiB5PSIxNyIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1mYW1pbHk9InN5c3RlbS11aSwtYXBwbGUtc3lzdGVtLHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iNS41IiBmb250LXdlaWdodD0iODAwIiBmaWxsPSIjZmZmIj5QREY8L3RleHQ+PC9zdmc+", diff --git a/bundled-addons/pdf-editor/editor.css b/bundled-addons/pdf-editor/editor.css index b0813224..c35120ac 100644 --- a/bundled-addons/pdf-editor/editor.css +++ b/bundled-addons/pdf-editor/editor.css @@ -168,7 +168,9 @@ body[data-dragover="1"] .dz-actions { visibility: hidden; } .tool.big { width: auto; padding: 0 10px; gap: 6px; } .tool.big .tlabel { font-size: 12px; line-height: 1; } .tool.big svg { width: 15px; height: 15px; } -@media (max-width: 900px) { .tool.big .tlabel { display: none; } .tool.big { width: 30px; padding: 0; } } +/* Five names take room. Below this the toolbar would start pushing the zoom + and colour controls off the end, so the names go and the icons stay. */ +@media (max-width: 1180px) { .tool.big .tlabel { display: none; } .tool.big { width: 30px; padding: 0; } } /* ---- typing on the page --------------------------------------------- */ /* Positioned by lib/inline.js against the page's own coordinates, so it sits diff --git a/bundled-addons/pdf-editor/editor.html b/bundled-addons/pdf-editor/editor.html index 9d567702..72ef04b0 100644 --- a/bundled-addons/pdf-editor/editor.html +++ b/bundled-addons/pdf-editor/editor.html @@ -35,8 +35,9 @@ controls can right-anchor without the tools crowding the left edge. -->
- +
+ +
-
- +
@@ -75,9 +81,6 @@
-