Skip to content

Commit 3fbaa79

Browse files
author
Gusted
authored
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.
1 parent cdab462 commit 3fbaa79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/clone_buttons.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</button>
1111
{{end}}
1212
<!-- the value will be updated by initRepoCloneLink, the code below is used to avoid UI flicking -->
13-
<input id="repo-clone-url" value="" readonly>
13+
<input id="repo-clone-url" value="" size="1" readonly>
1414
<script>
1515
(() => {
1616
const proto = localStorage.getItem('repo-clone-protocol') || 'https';

0 commit comments

Comments
 (0)