diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 81b2ba1b0b..d91dc4394e 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -5,7 +5,7 @@
{{template "base/alert" .}}
{{template "repo/code/recently_pushed_new_branches" .}}
{{if and (not .HideRepoInfo) (not .IsBlame)}}
-
+
{{$description := .Repository.DescriptionHTML $.Context}}
{{if $description}}{{$description | RenderCodeBlock}}{{else if .IsRepositoryAdmin}}{{ctx.Locale.Tr "repo.no_desc"}}{{end}}
diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 40f08f412f..d759d10c8a 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -211,14 +211,14 @@
display: flex;
justify-content: space-between;
align-items: center;
+ gap: 5px;
margin-bottom: 5px;
}
-@media (max-width: 767.68px) {
+@media (max-width: 767.98px) {
.repository.file.list .repo-description {
flex-direction: column;
- gap: 8px;
- align-items: normal;
+ align-items: stretch;
}
}