forgejo/templates
silverwind da23041257 fix extra newlines when copying from diff in Firefox (#7288)
* fix extra newlines when copying from diff

See https://bugzilla.mozilla.org/show_bug.cgi?id=1273836

Basically, the <pre><code> seems to add a forced newline that is not
possible to get rid of via CSS, so I replaced it with just a <code>.

Secondly, .lines-type-marker also forced a newline in the copied text,
but that was possible to get rid of via user-select.

Safari still has a extraneous newline in the copied text of unknown
origin, but this should not block stop this PR.

* simplify .line-type-marker

* fix selector

* remove erronous ^^^

* Fix empty split diff

* Fix arc-theme-green

* fix add comment

* ensure line-num is copied too

* Update templates/repo/diff/box.tmpl

Co-Authored-By: zeripath <art27@cantab.net>

* attempt to fix safari via removing <code>

* remove useless whitespace at the end of 'class'

* remove inter-tag whitespace for code <td>s

* more inter-tag removal

* final inter-tag removal

* attempt to fix empty line copy

* move and comment getLineContent

* fix golint

* make background grey for missing added code
2019-06-26 22:35:07 +01:00
..
admin show lfs config on admin panel (#7220) 2019-06-16 19:24:49 +01:00
base Allow Recaptcha service url to be configured (#6820) 2019-05-02 16:09:39 +03:00
custom Templates for extra links in top navbar and repo tool tabs. (#3308) 2018-01-10 08:19:50 +02:00
explore Repository avatar fallback configuration (#7087) 2019-06-02 14:40:12 +08:00
mail UX + Security current user password reset (#5042) 2019-04-18 10:23:59 +03:00
org fix new team 500 (#6749) 2019-04-25 17:00:34 +08:00
pwa Service worker js is a missing comma (#6788) 2019-04-28 21:45:05 -04:00
repo fix extra newlines when copying from diff in Firefox (#7288) 2019-06-26 22:35:07 +01:00
status Minor UI tweaks (#5980) 2019-02-19 18:09:47 -05:00
swagger Add missing description of label on API (#7159) 2019-06-16 20:39:52 +08:00
user Add golangci (#6418) 2019-06-12 15:41:28 -04:00
home.tmpl "It's all in GitHub" isn't true anymore, update the home template (#7059) 2019-05-27 18:43:37 +01:00
install.tmpl Add support of utf8mb4 for mysql (#6992) 2019-05-24 00:15:26 -04:00