Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Cross-reference to Forum Post: Revamped Copy Buttons (Web UI)
The Copy Buttons (to copy text to the clipboard in the web UI) are changed from
<span>
elements to<button>
elements containing a nested<span>
. This allows definition of the "pushed" look throughbutton:active
by CSS, obsoleting the corresponding JS code and the hard-codedopacity
animation. Like this, the transition from "normal" to "pushed" already happens on theonmousedown
event instead of on theonmouseup
event (when the click event is "complete" and triggers theonclick
handler), resulting in a more responsive user experience -- the main motivation behind this change.All JS code paths to initialize Copy Buttons automatically create the nested
<span>
element if the<button>
doesn't yet have any child nodes. However, where possible, the nested<span>
is already generated on the server-side as static HTML so that the Copy Buttons are still visible in case of JS errors (which probably only makes sense for Fossil JS hackers).The layout of the new
<button>
-based variant is compatible with the previous<span>
-based variant in Chrome/FF/IE, except for some barely noticeable horizontal deviation of a single pixel or two, likely due to font size differences of the<button>
element (despitefont-size: inherit
).
2025-08-12
| ||
15:27 | Use equal horizontal spacing for normal and "flipped" Copy Buttons (where the latter are positioned after the text to be copied). The idea is for the buttons to be tied to "their" text without spaces in between, resulting in a somewhat narrower spacing to emphasize the connection, but to have normal HTML whitespace on the other side. ... (Leaf check-in: 2bc2f724 user: florian tags: copybtn.js-responsive) | |
15:20 | Add some higher-specificity CSS declarations to prevent dark-mode skins from overriding the relevant styles of the Copy Button layout, so users don't need to sync their skin customizations with the changes on this branch. ... (check-in: b7f2c9f3 user: florian tags: copybtn.js-responsive) | |
15:04 | Revamp the Copy Buttons for a more responsive user experience. See the wiki page linked to this branch for more details. ... (check-in: 32c3a210 user: florian tags: copybtn.js-responsive) | |
2025-08-10
| ||
10:28 | Raise an error when trying to insert an unversioned file if the file size would cause the database row to exceed SQLITE_LIMIT_LENGTH. ... (check-in: c6265bb3 user: drh tags: trunk) | |