From 15ee243f19deb296ce10d7a8cf6d57b8c76647b7 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 3 Mar 2023 22:18:07 +0800 Subject: [PATCH 1/2] fix --- web_src/less/_base.less | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web_src/less/_base.less b/web_src/less/_base.less index a73dae6bf37ab..18159af03a1f5 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -2121,8 +2121,9 @@ a.ui.label:hover { font: 12px var(--fonts-monospace); white-space: pre-wrap; word-break: break-all; - overflow-wrap: break-word; - word-wrap: break-word; + overflow-wrap: anywhere; + /* stylelint-disable-next-line declaration-property-value-no-unknown */ + word-wrap: anywhere; // Firefox respects word-wrap more than overflow-wrap } .blame .code-inner { From 03ce9c0fd94252a1cea079cc0dd2b2bcac05e9d6 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 4 Mar 2023 01:57:31 +0800 Subject: [PATCH 2/2] drop legacy word-wrap Co-authored-by: silverwind --- web_src/less/_base.less | 2 -- 1 file changed, 2 deletions(-) diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 18159af03a1f5..1cf65e784cd4d 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -2122,8 +2122,6 @@ a.ui.label:hover { white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; - /* stylelint-disable-next-line declaration-property-value-no-unknown */ - word-wrap: anywhere; // Firefox respects word-wrap more than overflow-wrap } .blame .code-inner {