Skip to content

Commit 604ec20

Browse files
committed
add white-space rule for all buttons
1 parent aafced1 commit 604ec20

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

templates/repo/diff/compare.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
{{RenderIssueTitle $.Context .PullRequest.Issue.Title ($.Repository.ComposeMetas ctx) | RenderCodeBlock}}
191191
<span class="index">#{{.PullRequest.Issue.Index}}</span>
192192
</div>
193-
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui compact button primary tw-whitespace-nowrap">
193+
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui compact button primary">
194194
{{ctx.Locale.Tr "repo.pulls.view"}}
195195
</a>
196196
</div>

web_src/css/modules/button.css

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
background: var(--color-button);
2222
border: 1px solid var(--color-light-border);
2323
color: var(--color-text);
24+
white-space: nowrap;
25+
}
26+
27+
@media (max-width: 767.98px) {
28+
.ui.button {
29+
white-space: normal;
30+
}
2431
}
2532

2633
.ui.button:hover {

0 commit comments

Comments
 (0)