Skip to content

Commit 9c6af9d

Browse files
Cherrgtechknowlogick
authored andcommitted
wrap long texts on user profile info (#7333)
fix #7255 discussed in PR #7254 Signed-off-by: Michael Gnehr <[email protected]>
1 parent 3563650 commit 9c6af9d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

public/css/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ img{border-radius:3px}
4747
table{border-collapse:collapse}
4848
a{cursor:pointer}
4949
.rounded{border-radius:.28571429rem!important}
50+
.wrap{word-wrap:break-word;word-break:break-all}
5051
.mono,code,pre{font:12px 'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace}
5152
.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}
5253
.mono.wrap,code.wrap,pre.wrap{white-space:pre-wrap;word-break:break-all;overflow-wrap:break-word;word-wrap:break-word}

public/less/_base.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ a {
159159
border-radius: 0.28571429rem !important;
160160
}
161161

162+
.wrap {
163+
word-wrap: break-word;
164+
word-break: break-all;
165+
}
166+
162167
pre,
163168
code,
164169
.mono {

templates/user/profile.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}"/>
1414
</span>
1515
{{end}}
16-
<div class="content">
16+
<div class="content wrap">
1717
{{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}}
1818
<span class="username text center">{{.Owner.Name}}</span>
1919
</div>
20-
<div class="extra content">
20+
<div class="extra content wrap">
2121
<ul class="text black">
2222
{{if .Owner.Location}}
2323
<li><i class="octicon octicon-location"></i> {{.Owner.Location}}</li>

0 commit comments

Comments
 (0)