Skip to content

Commit 4297ace

Browse files
authored
Fix margin and alignment in dashboard repolist (go-gitea#22120) (go-gitea#22122)
Backport go-gitea#22120 to 1.18. Seems this has recently regressed, previously, there was a significant whitespace between icon and text, but it seems to be gone, so I added the margin.
1 parent dd2343d commit 4297ace

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

templates/user/dashboard/repolist.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@
128128
<ul class="repo-owner-name-list">
129129
<li v-for="repo in repos" :class="{'private': repo.private || repo.internal}">
130130
<a class="repo-list-link df ac sb" :href="repo.html_url">
131-
<div class="text truncate item-name f1">
132-
<component v-bind:is="repoIcon(repo)" size="16"></component>
133-
<strong>${repo.full_name}</strong>
131+
<div class="item-name df ac f1 mr-2">
132+
<component v-bind:is="repoIcon(repo)" size="16" class="mr-2"></component>
133+
<div class="text bold truncate ml-1">${repo.full_name}</div>
134134
<span v-if="repo.archived">
135135
{{svg "octicon-archive" 16 "ml-2"}}
136136
</span>

web_src/less/_dashboard.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@
188188
}
189189

190190
.repo-owner-name-list .item-name {
191-
max-width: 70%;
191+
min-width: 0;
192+
}
193+
194+
.repo-owner-name-list .item-name svg {
195+
min-width: 16px;
192196
}
193197
}
194198
}

0 commit comments

Comments
 (0)