Skip to content

Commit 7222bac

Browse files
GiteaBotwxiaoguang
andauthored
1 parent 0eb4ab4 commit 7222bac

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

templates/base/footer_content.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</div>
1717
<div class="right-links" role="group" aria-label="{{.locale.Tr "aria.footer.links"}}">
1818
<div class="ui dropdown upward language">
19-
<span>{{svg "octicon-globe"}} {{.locale.LangName}}</span>
19+
<span class="flex-text-inline">{{svg "octicon-globe" 14}} {{.locale.LangName}}</span>
2020
<div class="menu language-menu">
2121
{{range .AllLangs}}
2222
<a lang="{{.Lang}}" data-url="{{AppSubUrl}}/?lang={{.Lang}}" class="item {{if eq $.locale.Lang .Lang}}active selected{{end}}">{{.Name}}</a>

web_src/css/home.css

+13-5
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,26 @@
4545

4646
.page-footer {
4747
display: flex;
48+
justify-content: space-between;
4849
background-color: var(--color-footer);
4950
border-top: 1px solid var(--color-secondary);
50-
line-height: 39px;
51-
padding: 0 20px;
51+
padding: 8px 20px;
5252
}
5353

5454
.page-footer .left-links {
55-
flex: 1;
55+
display: flex;
56+
flex-wrap: wrap;
57+
align-items: center;
58+
justify-content: center;
59+
gap: 0.25em;
5660
}
5761

5862
.page-footer .right-links {
5963
min-width: 180px; /* make sure the menu dropdown doesn't overflow horizontally when language name is short */
64+
display: flex;
65+
flex-wrap: wrap;
66+
align-items: center;
67+
justify-content: center;
6068
}
6169

6270
.page-footer .right-links > a {
@@ -74,7 +82,7 @@
7482

7583
@media (max-width: 880px) {
7684
.page-footer {
77-
display: block;
78-
text-align: center;
85+
flex-direction: column;
86+
gap: 0.5em;
7987
}
8088
}

0 commit comments

Comments
 (0)