mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Clone panel fixes (#15435)
- Use <button> over <div> for a button - Fix absent border-right on wiki - Fix absent border-radius on wiki Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
		@@ -110,13 +110,13 @@
 | 
			
		||||
				{{if eq $n 0}}
 | 
			
		||||
					<div class="ui action tiny input" id="clone-panel">
 | 
			
		||||
						{{template "repo/clone_buttons" .}}
 | 
			
		||||
						<div class="ui basic jump dropdown icon button poping up" data-content="{{.i18n.Tr "repo.download_archive"}}" data-variation="tiny inverted" data-position="top right">
 | 
			
		||||
						<button id="download-btn" class="ui basic jump dropdown icon button poping up" data-content="{{.i18n.Tr "repo.download_archive"}}" data-variation="tiny inverted" data-position="top right">
 | 
			
		||||
							{{svg "octicon-download"}}
 | 
			
		||||
							<div class="menu">
 | 
			
		||||
								<a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip">{{svg "octicon-file-zip"}} ZIP</a>
 | 
			
		||||
								<a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz">{{svg "octicon-file-zip"}} TAR.GZ</a>
 | 
			
		||||
							</div>
 | 
			
		||||
						</div>
 | 
			
		||||
						</button>
 | 
			
		||||
					</div>
 | 
			
		||||
				{{end}}
 | 
			
		||||
			</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -201,18 +201,25 @@
 | 
			
		||||
    .clone.button {
 | 
			
		||||
      font-size: 13px;
 | 
			
		||||
      padding: 7.5px 5px;
 | 
			
		||||
 | 
			
		||||
      &:first-child {
 | 
			
		||||
        border-radius: var(--border-radius) 0 0 var(--border-radius);
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #repo-clone-https,
 | 
			
		||||
    #repo-clone-ssh,
 | 
			
		||||
    #clipboard-btn {
 | 
			
		||||
    #repo-clone-ssh {
 | 
			
		||||
      border-right: none;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #download-btn {
 | 
			
		||||
      border-left: none;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    button:first-of-type {
 | 
			
		||||
      border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    button:last-of-type {
 | 
			
		||||
      border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .icon.button {
 | 
			
		||||
      padding: 0 10px;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user