diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-06-12 11:30:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 12:30:22 +0300 |
commit | 0097fbc2ac153a686b68af43e791704e9b5cf74b (patch) | |
tree | 9063edb81fdf53217063376a7f0bde643314e08a /templates/repo/view_file.tmpl | |
parent | edf14202fea349500d69ed2a360a53cc0d1f80e3 (diff) | |
download | gitea-0097fbc2ac153a686b68af43e791704e9b5cf74b.tar.gz gitea-0097fbc2ac153a686b68af43e791704e9b5cf74b.zip |
Improve file header on mobile (#19945)
- File headers can become quite width, so ensure the file size is not
being wrapped into itself(width + padding-right) and allow the overflow
to be scrolled(overflow-x).
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r-- | templates/repo/view_file.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index c5efd3d2d4..fe5cb7b170 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -1,6 +1,6 @@ <div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content"> <h4 class="file-header ui top attached header df ac sb"> - <div class="file-header-left df ac"> + <div class="file-header-left df ac pr-4"> {{if .ReadmeInList}} {{svg "octicon-book" 16 "mr-3"}} <strong>{{.FileName}}</strong> |