Prechádzať zdrojové kódy

[GinR] Arrange file buttons to fit with input

cgars 7 rokov pred
rodič
commit
44e3748335
2 zmenil súbory, kde vykonal 9 pridanie a 3 odobranie
  1. 4 0
      public/css/gogs.css
  2. 5 3
      templates/repo/home.tmpl

+ 4 - 0
public/css/gogs.css

@@ -3241,3 +3241,7 @@ figure figcaption {
 .ui.codetab{
   padding: 0;
 }
+
+#file-buttons {
+  padding-right: 5px;
+}

+ 5 - 3
templates/repo/home.tmpl

@@ -53,6 +53,7 @@
 				</div>
 			</div>
 			<div class="right fitted item">
+				<div class="ui action small input" id="clone-panel">
 				{{if .Repository.CanEnableEditor}}
 					<div id="file-buttons" class="ui tiny blue buttons">
 						{{if .CanAddFile}}
@@ -70,7 +71,7 @@
 
 				<!-- Only show colne panel in repository home page -->
 				{{if eq $n 0}}
-					<div class="ui action small input" id="clone-panel">
+
 						<button class="ui basic clone button" id="repo-clone-gin" data-link="{{.CloneLink.Gin}}">
 							GIN
 						</button>
@@ -88,7 +89,7 @@
 						<button class="ui basic icon button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url">
 							<i class="octicon octicon-clippy"></i>
 						</button>
-						<div id="download-repo-button" class="ui basic jump dropdown icon button">
+						<div id="download-repo-button" class="ui basic icon button poping up" data-original="Archives">
 						<i class="download icon"></i>
 						</div>
 
@@ -111,8 +112,9 @@
 							</div>
 						</div>
 
-					</div>
+
 				{{end}}
+				</div>
 			</div>
 		</div>
 		{{if .IsViewFile}}