Skip to content

Commit f217245

Browse files
committed
simpify mobile view
1 parent 4265297 commit f217245

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

templates/repo/home.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
</div>
119119

120120
{{if $isHomepage}}
121-
<div style="width: 25%">
121+
<div class="flex-container-repo">
122122
<form class="ignore-dirty tw-flex tw-flex-1 tw-mt-1" action="{{.RepoLink}}/search" method="get">
123123
<div class="ui small action input tw-flex-1">
124124
<input name="q" size="10" placeholder="{{ctx.Locale.Tr "search.code_kind"}}">

web_src/css/modules/flexcontainer.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
min-width: 0; /* make the "text truncate" work, otherwise the flex axis is not limited and the text just overflows */
2222
}
2323

24+
.flex-container-repo {
25+
width: 25%;
26+
}
27+
2428
@media (max-width: 767.98px) {
2529
.flex-container {
2630
flex-direction: column;
@@ -30,4 +34,7 @@
3034
order: -1;
3135
width: auto;
3236
}
37+
.flex-container-repo {
38+
width: 100%;
39+
}
3340
}

0 commit comments

Comments
 (0)