mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	fix markdown checkbox rendering (#17425)
This commit is contained in:
		@@ -159,12 +159,18 @@
 | 
			
		||||
  .task-list-item {
 | 
			
		||||
    list-style-type: none;
 | 
			
		||||
    position: relative;
 | 
			
		||||
    line-height: 1.5rem;
 | 
			
		||||
    min-height: 1.5rem; // to render a checkbox list without content `- [ ]`, we need this min-height to make sure the <li> can be visible
 | 
			
		||||
 | 
			
		||||
    input[type="checkbox"] {
 | 
			
		||||
      position: absolute;
 | 
			
		||||
      top: .25em;
 | 
			
		||||
      left: -1.6em;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    p {
 | 
			
		||||
      line-height: 1.5rem;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .task-list-item + .task-list-item {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user