mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix margin on the new/edit milestone page (#25801)
				
					
				
			There is some distortion in desktop and mobile ui for new/edit milestone page. Fixing the new/edit milestone page for desktop and mobile ui Design background https://uxplanet.org/primary-secondary-action-buttons-c16df9b36150 https://balsamiq.com/learn/articles/button-design-best-practices/ <details> <summary>Screen shots</summary> Before:   After   </details> --------- Co-authored-by: Denys Konovalov <privat@denyskon.de> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -21,9 +21,8 @@
 | 
				
			|||||||
			{{end}}
 | 
								{{end}}
 | 
				
			||||||
		</h2>
 | 
							</h2>
 | 
				
			||||||
		{{template "base/alert" .}}
 | 
							{{template "base/alert" .}}
 | 
				
			||||||
		<form class="ui form grid" action="{{.Link}}" method="post">
 | 
							<form class="ui form" action="{{.Link}}" method="post">
 | 
				
			||||||
			{{.CsrfTokenHtml}}
 | 
								{{.CsrfTokenHtml}}
 | 
				
			||||||
			<div class="twelve wide column">
 | 
					 | 
				
			||||||
				<div class="field {{if .Err_Title}}error{{end}}">
 | 
									<div class="field {{if .Err_Title}}error{{end}}">
 | 
				
			||||||
					<label>{{.locale.Tr "repo.milestones.title"}}</label>
 | 
										<label>{{.locale.Tr "repo.milestones.title"}}</label>
 | 
				
			||||||
					<input name="title" placeholder="{{.locale.Tr "repo.milestones.title"}}" value="{{.title}}" autofocus required maxlength="50">
 | 
										<input name="title" placeholder="{{.locale.Tr "repo.milestones.title"}}" value="{{.title}}" autofocus required maxlength="50">
 | 
				
			||||||
@@ -39,10 +38,8 @@
 | 
				
			|||||||
					<label>{{.locale.Tr "repo.milestones.desc"}}</label>
 | 
										<label>{{.locale.Tr "repo.milestones.desc"}}</label>
 | 
				
			||||||
					<textarea name="content">{{.content}}</textarea>
 | 
										<textarea name="content">{{.content}}</textarea>
 | 
				
			||||||
				</div>
 | 
									</div>
 | 
				
			||||||
			</div>
 | 
					 | 
				
			||||||
			<div class="ui container">
 | 
					 | 
				
			||||||
				<div class="divider"></div>
 | 
									<div class="divider"></div>
 | 
				
			||||||
				<div class="ui right">
 | 
									<div class="gt-text-right">
 | 
				
			||||||
					{{if .PageIsEditMilestone}}
 | 
										{{if .PageIsEditMilestone}}
 | 
				
			||||||
						<a class="ui primary basic button" href="{{.RepoLink}}/milestones">
 | 
											<a class="ui primary basic button" href="{{.RepoLink}}/milestones">
 | 
				
			||||||
							{{.locale.Tr "repo.milestones.cancel"}}
 | 
												{{.locale.Tr "repo.milestones.cancel"}}
 | 
				
			||||||
@@ -55,7 +52,6 @@
 | 
				
			|||||||
							{{.locale.Tr "repo.milestones.create"}}
 | 
												{{.locale.Tr "repo.milestones.create"}}
 | 
				
			||||||
						</button>
 | 
											</button>
 | 
				
			||||||
					{{end}}
 | 
										{{end}}
 | 
				
			||||||
				</div>
 | 
					 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
		</form>
 | 
							</form>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user