diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-28 11:34:43 -0400 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-28 11:34:43 -0400 |
commit | be16025cfbbafcffe26d2b6e7a17952a39c2cd67 (patch) | |
tree | 0b97f399ba4bb20f919911b8e6b1d92e0d522fbf | |
parent | c8f96e2696d4d538e2b5e9afdec945c3091ce03c (diff) | |
download | patchfoo-be16025cfbbafcffe26d2b6e7a17952a39c2cd67.tar.gz patchfoo-be16025cfbbafcffe26d2b6e7a17952a39c2cd67.zip |
Compress id markdown, to save horizontal space
-rw-r--r-- | lib/render.js | 3 | ||||
-rw-r--r-- | static/styles.css | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/render.js b/lib/render.js index 57cc3b5..7f6cba5 100644 --- a/lib/render.js +++ b/lib/render.js @@ -381,7 +381,8 @@ Render.prototype.idLinkCopyable = function (link, cb) { a.innerHTML = h('span', [ h('span.id-deemphasize', '['), h('span.id-name', '@' + link.name), - h('span.id-deemphasize', '](', link.link, ')'), + h('span.id-deemphasize', ']' + + '(', h('span.id-inner', link.link), ')'), ]).innerHTML } cb() diff --git a/static/styles.css b/static/styles.css index 50ad7c0..56a470b 100644 --- a/static/styles.css +++ b/static/styles.css @@ -126,13 +126,17 @@ pre { .id-deemphasize { color: #67f; - font-size: smaller; + font-size: x-small; } .id-name { text-decoration: underline; } +.id-inner { + letter-spacing: -1ex; +} + .msg-header { margin-bottom: .25ex; } |