D 2019-07-26T08:58:41.390
L branch/tooltip-copyhash
N text/x-markdown
P cc0712597ff996d06f51c49ef28344bcbb1fd64d32ddc0ac7af45fa93d9e3a51
U florian
W 4687
__TODO:__
* ☑️ Trim the length of the copied hashes to the limit defined by the [`hash-digits`](/help?cmd=hash-digits) setting.
* ☑️ Also apply the same limit to the link text for hashes?
* ☑️ Reevaluate the position of the "Copy Hash" icon on the tooltip.
* ❌ Refresh my trigonometry skills, and calculate the outline of the icon more accurately. See comment below.
__Copy text to clipboard using Javascript:__
*
*
*
*
__Uncompressed source code for the "Copy Hash" icon:__
Following are example and source code for the icon with the outline calculated more accurately, i.e. narrower on the sloping side. Yet it turns out the original variant (drawn by eye) looks better at small sizes of 14 to 64 (device) pixels on dark backgrounds, due to the resulting softer anti-aliasing on the sloping side.
Z 4b9963a14b38036f5811a7c7b7d02541