element no longer truncates post titles to 50 characters (technically, we don't need to truncate at all there, but I opted for max title length truncation just in case);
Copying links
Below are screenshots of the initial implementation (raw URL & Markdown link copying).
Per-post (expanded) view:
Post history view:
The above is subject to change over the course of fleshing the idea out.
TODO:
[x] create a partial for rendering a reusable component;
[x] switch expanded post view to the partial;
[x] switch post history view to the partial;
[X] at least show a link that can be manually copied if JS is disabled;
[X] decide on the appropriate title override for Markdown share links for post history;
[X] update Code Golf's script to not rely on .js-permalink*;
[ ] add rich link copying;
* Instead of updating the script, I ended up using a hidden anchor tag for scripts to be able to hook to it as usual. A better idea, probably, is to set a data attribute on the button, though.
After some deliberation, I don't think there's a need for a separate rich link option (raw link & markdown cover all common cases). The rest should work as described.
Closes #1208 and #1209
General improvements
Copying links
Below are screenshots of the initial implementation (raw URL & Markdown link copying).
Per-post (expanded) view:
Post history view:
The above is subject to change over the course of fleshing the idea out.
TODO:
.js-permalink
*;* Instead of updating the script, I ended up using a hidden anchor tag for scripts to be able to hook to it as usual. A better idea, probably, is to set a data attribute on the button, though.