mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Diff box fixes (#15214)
- Fix misaligned "Show Outdated" buttons via flexbox - Add hover effect to "Show Outdated" buttons - Remove overreaching margin from selector .diff-file-box and handle cases individually. Fixes: https://github.com/go-gitea/gitea/issues/15097 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		| @@ -1107,15 +1107,6 @@ | ||||
|  | ||||
|         .segments { | ||||
|           box-shadow: none; | ||||
|  | ||||
|           .show-outdated, | ||||
|           .hide-outdated { | ||||
|             display: block; | ||||
|           } | ||||
|  | ||||
|           .label { | ||||
|             margin-left: 6px; | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     } | ||||
| @@ -1635,9 +1626,6 @@ | ||||
|   } | ||||
|  | ||||
|   .diff-file-box { | ||||
|     margin-top: 1rem; | ||||
|     margin-bottom: 1rem; | ||||
|  | ||||
|     .header { | ||||
|       background-color: var(--color-box-header); | ||||
|     } | ||||
|   | ||||
| @@ -35,11 +35,15 @@ | ||||
|   &:not(.top) { | ||||
|     margin-bottom: .5em; | ||||
|   } | ||||
| } | ||||
|  | ||||
|   .show-outdated, | ||||
|   .hide-outdated { | ||||
|     display: block; | ||||
|     margin-left: auto; | ||||
| .show-outdated, | ||||
| .hide-outdated { | ||||
|   display: block !important; | ||||
|   user-select: none !important; | ||||
|  | ||||
|   &:hover { | ||||
|     text-decoration: underline; | ||||
|   } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user