mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	fix markdown padding
This commit is contained in:
		@@ -1072,6 +1072,8 @@ footer .container .links > *:first-child {
 | 
				
			|||||||
  font-size: 16px;
 | 
					  font-size: 16px;
 | 
				
			||||||
  line-height: 1.6 !important;
 | 
					  line-height: 1.6 !important;
 | 
				
			||||||
  word-wrap: break-word;
 | 
					  word-wrap: break-word;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					.markdown.file-view {
 | 
				
			||||||
  padding: 5px 2em 2em !important;
 | 
					  padding: 5px 2em 2em !important;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
.markdown > *:first-child {
 | 
					.markdown > *:first-child {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,10 @@
 | 
				
			|||||||
  font-size: 16px;
 | 
					  font-size: 16px;
 | 
				
			||||||
  line-height: 1.6 !important;
 | 
					  line-height: 1.6 !important;
 | 
				
			||||||
  word-wrap: break-word;
 | 
					  word-wrap: break-word;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  &.file-view {
 | 
				
			||||||
    padding: 5px 2em 2em !important;
 | 
					    padding: 5px 2em 2em !important;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  >*:first-child {
 | 
					  >*:first-child {
 | 
				
			||||||
    margin-top: 0 !important;
 | 
					    margin-top: 0 !important;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,7 +24,7 @@
 | 
				
			|||||||
    {{end}}
 | 
					    {{end}}
 | 
				
			||||||
  </h4>
 | 
					  </h4>
 | 
				
			||||||
  <div class="ui attached table segment">
 | 
					  <div class="ui attached table segment">
 | 
				
			||||||
    <div class="{{if .ReadmeExist}}markdown{{else if .IsFileText}}code-view{{end}}">
 | 
					    <div class="file-view {{if .ReadmeExist}}markdown{{else if .IsFileText}}code-view{{end}}">
 | 
				
			||||||
      {{if .ReadmeExist}}
 | 
					      {{if .ReadmeExist}}
 | 
				
			||||||
      {{if .FileContent}}{{.FileContent | Str2html}}{{end}}
 | 
					      {{if .FileContent}}{{.FileContent | Str2html}}{{end}}
 | 
				
			||||||
        {{else if not .IsFileText}}
 | 
					        {{else if not .IsFileText}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user