1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 01:54:26 +00:00

Fix file header overflow in file and blame views (#7562) (#7579)

This commit is contained in:
silverwind 2019-07-23 08:18:39 +02:00 committed by Lunny Xiao
parent 103a66ae83
commit d6a980501b
2 changed files with 5 additions and 5 deletions

View File

@ -2,11 +2,11 @@
<h4 class="ui top attached header" id="repo-read-file"> <h4 class="ui top attached header" id="repo-read-file">
<div class="ui stackable grid"> <div class="ui stackable grid">
<div class="ten wide column"> <div class="eight wide column">
<i class="file text outline icon ui left"></i> <i class="file text outline icon ui left"></i>
<strong>{{.FileName}}</strong> <span class="text grey normal">{{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}</span> <strong>{{.FileName}}</strong> <span class="text grey normal">{{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}</span>
</div> </div>
<div class="six wide right aligned column"> <div class="eight wide right aligned column">
<div class="ui right file-actions"> <div class="ui right file-actions">
<div class="ui buttons"> <div class="ui buttons">
{{if not .IsViewCommit}} {{if not .IsViewCommit}}

View File

@ -1,7 +1,7 @@
<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content"> <div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
<h4 class="ui top attached header" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}"> <h4 class="ui top attached header" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}">
<div class="ui stackable grid"> <div class="ui stackable grid">
<div class="ten wide column"> <div class="eight wide column">
{{if .ReadmeExist}} {{if .ReadmeExist}}
<i class="book icon ui left"></i> <i class="book icon ui left"></i>
{{if .ReadmeInList}} {{if .ReadmeInList}}
@ -14,7 +14,7 @@
<strong>{{.FileName}}</strong> <span class="text grey normal">{{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}</span> <strong>{{.FileName}}</strong> <span class="text grey normal">{{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}</span>
{{end}} {{end}}
</div> </div>
<div class="six wide right aligned column"> <div class="eight wide right aligned column">
{{if not .ReadmeInList}} {{if not .ReadmeInList}}
<div class="ui right file-actions"> <div class="ui right file-actions">
<div class="ui buttons"> <div class="ui buttons">