aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorparnic <github@parnic.com>2022-04-29 04:30:54 -0500
committerGitHub <noreply@github.com>2022-04-29 12:30:54 +0300
commit3e2bba08035136a43786db47ba69a37d19b06304 (patch)
tree61e9f67f5be593db096ba265b76a81cfbadba2b1 /web_src
parent334707fee90922e514485718088e3f0d55671c72 (diff)
downloadgitea-3e2bba08035136a43786db47ba69a37d19b06304.tar.gz
gitea-3e2bba08035136a43786db47ba69a37d19b06304.zip
Fix Pull Request comment filename word breaks (#19535)
* Fix word breaks in Chrome This fixes word wrapping on the filename for a comment on a PR. A previous commit fixed this problem in Firefox, but not Chrome. Fixes #16248 * Don't break Outdated badge This prevents the Outdated badge on a PR from wrapping in the middle of the word for a comment on a long filename. * Move word break to recommended element * Add overflow-wrap per PR review * Update web_src/less/helpers.less Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/helpers.less2
1 files changed, 2 insertions, 0 deletions
diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less
index 6904083da8..0c4bf1753a 100644
--- a/web_src/less/helpers.less
+++ b/web_src/less/helpers.less
@@ -27,6 +27,8 @@
.word-break {
word-wrap: break-word !important;
+ word-break: break-word; /* compat: Safari */
+ overflow-wrap: anywhere;
}
.ellipsis {