Skip to content

Commit 1752128

Browse files
wxiaoguangyardenshoham
authored andcommitted
fix code styles in feed list
1 parent 6a6ea58 commit 1752128

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

templates/user/dashboard/feeds.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,17 @@
9999
</ul>
100100
</div>
101101
{{else if eq .GetOpType 6}}
102-
<span class="text truncate issue title issue-title">{{index .GetIssueInfos 1 | RenderEmoji | RenderCodeBlock}}</span>
102+
<span class="text truncate issue title">{{index .GetIssueInfos 1 | RenderEmoji | RenderCodeBlock}}</span>
103103
{{else if eq .GetOpType 7}}
104-
<span class="text truncate issue title issue-title">{{index .GetIssueInfos 1 | RenderEmoji | RenderCodeBlock}}</span>
104+
<span class="text truncate issue title">{{index .GetIssueInfos 1 | RenderEmoji | RenderCodeBlock}}</span>
105105
{{else if or (eq .GetOpType 10) (eq .GetOpType 21) (eq .GetOpType 22) (eq .GetOpType 23)}}
106-
<a href="{{.GetCommentLink}}" class="text truncate issue title issue-title">{{.GetIssueTitle | RenderEmoji | RenderCodeBlock}}</a>
106+
<a href="{{.GetCommentLink}}" class="text truncate issue title">{{.GetIssueTitle | RenderEmoji | RenderCodeBlock}}</a>
107107
{{$comment := index .GetIssueInfos 1}}
108108
{{if gt (len $comment) 0}}<p class="text light grey">{{$comment | RenderEmoji}}</p>{{end}}
109109
{{else if eq .GetOpType 11}}
110110
<p class="text light grey">{{index .GetIssueInfos 1}}</p>
111111
{{else if or (eq .GetOpType 12) (eq .GetOpType 13) (eq .GetOpType 14) (eq .GetOpType 15)}}
112-
<span class="text truncate issue title issue-title">{{.GetIssueTitle | RenderEmoji | RenderCodeBlock}}</span>
112+
<span class="text truncate issue title">{{.GetIssueTitle | RenderEmoji | RenderCodeBlock}}</span>
113113
{{else if eq .GetOpType 25}}
114114
<p class="text light grey">{{$.locale.Tr "action.review_dismissed_reason"}}</p>
115115
<p class="text light grey">{{index .GetIssueInfos 2 | RenderEmoji}}</p>

web_src/less/_base.less

+3-3
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ a.commit-statuses-trigger {
333333
}
334334

335335
.issue-title code {
336-
padding: 2px 4px !important;
337-
border-radius: 6px !important;
338-
background-color: var(--color-markup-code-block) !important;
336+
padding: 2px 4px;
337+
border-radius: 6px;
338+
background-color: var(--color-markup-code-block);
339339
}
340340
/* try to match button with no icons in height */
341341
.icon-button {

web_src/less/_dashboard.less

+2-3
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,9 @@
141141
}
142142

143143
code {
144-
padding: 1px;
145-
font-size: 85%;
146-
background-color: rgba(0, 0, 0, .04);
144+
padding: 2px 4px;
147145
border-radius: 3px;
146+
background-color: var(--color-markup-code-block);
148147
word-break: break-all;
149148
}
150149

0 commit comments

Comments
 (0)