You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
5 years ago
..
admin show lfs config on admin panel (#7220) 5 years ago
base Allow Recaptcha service url to be configured (#6820) 5 years ago
custom Templates for extra links in top navbar and repo tool tabs. (#3308) 7 years ago
explore Repository avatar fallback configuration (#7087) 5 years ago
mail UX + Security current user password reset (#5042) 5 years ago
org fix new team 500 (#6749) 5 years ago
pwa Service worker js is a missing comma (#6788) 5 years ago
repo fix extra newlines when copying from diff in Firefox (#7288) 5 years ago
status Minor UI tweaks (#5980) 5 years ago
swagger Add missing description of label on API (#7159) 5 years ago
user Add golangci (#6418) 5 years ago
home.tmpl "It's all in GitHub" isn't true anymore, update the home template (#7059) 5 years ago
install.tmpl Add support of utf8mb4 for mysql (#6992) 5 years ago