diff options
author | mrsdizzie <info@mrsdizzie.com> | 2020-07-08 17:02:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 22:02:38 +0100 |
commit | a6168fa25d0a7dfee689e1bce940557fff70d392 (patch) | |
tree | 6571fae3f1d73ffc9d3ace5ff3c3bcbf7c34909c /web_src/less/_base.less | |
parent | cedbd3684fe76875c9ce3b2c12471db63a11f421 (diff) | |
download | gitea-a6168fa25d0a7dfee689e1bce940557fff70d392.tar.gz gitea-a6168fa25d0a7dfee689e1bce940557fff70d392.zip |
Make copy/paste work for source code (#12191)
* Make copy/paste work for source code
Fix regression casued by #12047 so copy/paste works properly in all browsers.
Fixes #12184
Also while looking at this I saw a small display issue for blame view. I think #12023 was merged into original PR through an update branch before #12047 was merged and made one of the css ruules not apply anymore.
* use pseudo-element to prevent copying of comment + symbol even when not visually selected
* remove added newline here should not be necessary anymore
* make sure empty line is newline so there is something to select and copy
Diffstat (limited to 'web_src/less/_base.less')
-rw-r--r-- | web_src/less/_base.less | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 93e8af806c..ee02601676 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -1039,6 +1039,10 @@ i.icon.centerlock { } } +.lines-code code { + white-space: pre; +} + .blame .lines-num { padding: 0 !important; background-color: #f5f5f5; |