0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 08:14:06 +01:00
gitea/templates/repo
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
..
branch Number of commits ahead/behind in branch overview (#6695) 2019-05-05 19:25:25 +03:00
diff fix extra newlines when copying from diff in Firefox (#7288) 2019-06-26 22:35:07 +01:00
editor
issue Fix input size for dependency select (#6913) 2019-05-12 14:10:12 +03:00
pulls Compare branches, commits and tags with each other (#6991) 2019-06-07 16:29:29 -04:00
release
settings Repository avatars (#6986) 2019-05-29 22:22:26 -04:00
wiki
activity.tmpl Improve localization of git activity stats (#6848) 2019-05-04 23:32:37 +03:00
blame.tmpl
branch_dropdown.tmpl
commit_page.tmpl Compare branches, commits and tags with each other (#6991) 2019-06-07 16:29:29 -04:00
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
commits_table.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
commits.tmpl
create.tmpl
empty.tmpl
forks.tmpl
graph.tmpl
header.tmpl Repository avatars (#6986) 2019-05-29 22:22:26 -04:00
home.tmpl
migrate.tmpl Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 2019-05-07 09:12:51 +08:00
search.tmpl
sub_menu.tmpl
user_cards.tmpl
view_file.tmpl Order file actions equal to GitHub (#6706) 2019-04-24 12:53:57 +08:00
view_list.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
watchers.tmpl