Skip to content

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/repo/home.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
</div>
3636
{{end}}
3737
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
38-
<div class="ui form gt-hidden gt-df gt-mt-4" id="topic_edit">
39-
<div class="field gt-f1 gt-mr-3">
40-
<div class="ui fluid multiple search selection dropdown" data-text-count-prompt="{{ctx.Locale.Tr "repo.topic.count_prompt"}}" data-text-format-prompt="{{ctx.Locale.Tr "repo.topic.format_prompt"}}">
38+
<div class="ui form gt-hidden gt-df gt-fc gt-mt-4" id="topic_edit">
39+
<div class="field gt-f1 gt-mb-2">
40+
<div class="ui fluid multiple search selection dropdown gt-fw" data-text-count-prompt="{{ctx.Locale.Tr "repo.topic.count_prompt"}}" data-text-format-prompt="{{ctx.Locale.Tr "repo.topic.format_prompt"}}">
4141
<input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if Eval $i "+" 1 "<" (len $.Topics)}},{{end}}{{end}}">
4242
{{range .Topics}}
4343
{{/* keey the same layout as Fomantic UI generated labels */}}

web_src/js/features/repo-home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function initRepoTopicBar() {
4343
const topicArray = topics.split(',');
4444
topicArray.sort();
4545
for (let i = 0; i < topicArray.length; i++) {
46-
const link = $('<a class="ui repo-topic large label topic"></a>');
46+
const link = $('<a class="ui repo-topic large label topic gt-m-0"></a>');
4747
link.attr('href', `${appSubUrl}/explore/repos?q=${encodeURIComponent(topicArray[i])}&topic=1`);
4848
link.text(topicArray[i]);
4949
link.insertBefore(mgrBtn); // insert all new topics before manage button

0 commit comments

Comments
 (0)