summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorCherrg <michael@gnehr.de>2019-07-01 03:56:26 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-06-30 21:56:26 -0400
commit9c6af9d2bb6a173fac51a58415e69665c550d7fa (patch)
tree7c0a71161d6a14b0d259e1923f341e1a4d232f84 /public
parent3563650bdb273045c55400ee9520a0f78fc90e76 (diff)
downloadgitea-9c6af9d2bb6a173fac51a58415e69665c550d7fa.tar.gz
gitea-9c6af9d2bb6a173fac51a58415e69665c550d7fa.zip
wrap long texts on user profile info (#7333)
fix #7255 discussed in PR #7254 Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'public')
-rw-r--r--public/css/index.css1
-rw-r--r--public/less/_base.less5
2 files changed, 6 insertions, 0 deletions
diff --git a/public/css/index.css b/public/css/index.css
index 3418847a4f..303cbc4ef6 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -47,6 +47,7 @@ img{border-radius:3px}
table{border-collapse:collapse}
a{cursor:pointer}
.rounded{border-radius:.28571429rem!important}
+.wrap{word-wrap:break-word;word-break:break-all}
.mono,code,pre{font:12px 'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace}
.mono.raw,code.raw,pre.raw{padding:7px 12px;margin:10px 0;background-color:#f8f8f8;border:1px solid #ddd;border-radius:3px;font-size:13px;line-height:1.5;overflow:auto}
.mono.wrap,code.wrap,pre.wrap{white-space:pre-wrap;word-break:break-all;overflow-wrap:break-word;word-wrap:break-word}
diff --git a/public/less/_base.less b/public/less/_base.less
index 213ae2d2e6..4ce1b8eff9 100644
--- a/public/less/_base.less
+++ b/public/less/_base.less
@@ -159,6 +159,11 @@ a {
border-radius: 0.28571429rem !important;
}
+.wrap {
+ word-wrap: break-word;
+ word-break: break-all;
+}
+
pre,
code,
.mono {