aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-04-26 23:22:11 +0000
committerGitHub <noreply@github.com>2022-04-26 19:22:11 -0400
commit3fbaa79c6e0964d01c21609a97b202df24eb7daf (patch)
treeb4caa6b7515143066a025b8bab2c2ba33ef9e9cb /templates
parentcdab46220d62805b21474bfc1d3c2b5d9a63750f (diff)
downloadgitea-3fbaa79c6e0964d01c21609a97b202df24eb7daf.tar.gz
gitea-3fbaa79c6e0964d01c21609a97b202df24eb7daf.zip
Don't let repo clone URL overflow (#19517)
- Apparently `<input>` elements differ from other elements have a size attribute that act as a `min-width` CSS property, this causes a overflow on mobile. By setting this size to `1` it doesn't try to force a min-width and nicely shrink down.
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/clone_buttons.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl
index cee7e31965..ea2525addf 100644
--- a/templates/repo/clone_buttons.tmpl
+++ b/templates/repo/clone_buttons.tmpl
@@ -10,7 +10,7 @@
</button>
{{end}}
<!-- the value will be updated by initRepoCloneLink, the code below is used to avoid UI flicking -->
-<input id="repo-clone-url" value="" readonly>
+<input id="repo-clone-url" value="" size="1" readonly>
<script>
(() => {
const proto = localStorage.getItem('repo-clone-protocol') || 'https';