Skip to content

Commit

Permalink
fix code styles in feed list
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored and yardenshoham committed Oct 15, 2022
1 parent 6a6ea58 commit 1752128
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions templates/user/dashboard/feeds.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@
</ul>
</div>
{{else if eq .GetOpType 6}}
<span class="text truncate issue title issue-title">{{index .GetIssueInfos 1 | RenderEmoji | RenderCodeBlock}}</span>
<span class="text truncate issue title">{{index .GetIssueInfos 1 | RenderEmoji | RenderCodeBlock}}</span>
{{else if eq .GetOpType 7}}
<span class="text truncate issue title issue-title">{{index .GetIssueInfos 1 | RenderEmoji | RenderCodeBlock}}</span>
<span class="text truncate issue title">{{index .GetIssueInfos 1 | RenderEmoji | RenderCodeBlock}}</span>
{{else if or (eq .GetOpType 10) (eq .GetOpType 21) (eq .GetOpType 22) (eq .GetOpType 23)}}
<a href="{{.GetCommentLink}}" class="text truncate issue title issue-title">{{.GetIssueTitle | RenderEmoji | RenderCodeBlock}}</a>
<a href="{{.GetCommentLink}}" class="text truncate issue title">{{.GetIssueTitle | RenderEmoji | RenderCodeBlock}}</a>
{{$comment := index .GetIssueInfos 1}}
{{if gt (len $comment) 0}}<p class="text light grey">{{$comment | RenderEmoji}}</p>{{end}}
{{else if eq .GetOpType 11}}
<p class="text light grey">{{index .GetIssueInfos 1}}</p>
{{else if or (eq .GetOpType 12) (eq .GetOpType 13) (eq .GetOpType 14) (eq .GetOpType 15)}}
<span class="text truncate issue title issue-title">{{.GetIssueTitle | RenderEmoji | RenderCodeBlock}}</span>
<span class="text truncate issue title">{{.GetIssueTitle | RenderEmoji | RenderCodeBlock}}</span>
{{else if eq .GetOpType 25}}
<p class="text light grey">{{$.locale.Tr "action.review_dismissed_reason"}}</p>
<p class="text light grey">{{index .GetIssueInfos 2 | RenderEmoji}}</p>
Expand Down
6 changes: 3 additions & 3 deletions web_src/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ a.commit-statuses-trigger {
}

.issue-title code {
padding: 2px 4px !important;
border-radius: 6px !important;
background-color: var(--color-markup-code-block) !important;
padding: 2px 4px;
border-radius: 6px;
background-color: var(--color-markup-code-block);
}
/* try to match button with no icons in height */
.icon-button {
Expand Down
5 changes: 2 additions & 3 deletions web_src/less/_dashboard.less
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,9 @@
}

code {
padding: 1px;
font-size: 85%;
background-color: rgba(0, 0, 0, .04);
padding: 2px 4px;
border-radius: 3px;
background-color: var(--color-markup-code-block);
word-break: break-all;
}

Expand Down

0 comments on commit 1752128

Please sign in to comment.