mirror of https://github.com/go-gitea/gitea.git
Various UI fixes (#25264)
Numerous small UI fixes: - Fix double border in collaborator list - Fix system notice table background - Mute links in repo and org lists - Downsize projects edit buttons - Improve milestones and project list rendering - Condense milestone list entry to a single line of "metas" - Mute ".." button in repo files list
This commit is contained in:
parent
8afc1b1cb5
commit
656d3cc719
|
@ -3,7 +3,7 @@
|
||||||
<h4 class="ui top attached header">
|
<h4 class="ui top attached header">
|
||||||
{{.locale.Tr "admin.notices.system_notice_list"}} ({{.locale.Tr "admin.total" .Total}})
|
{{.locale.Tr "admin.notices.system_notice_list"}} ({{.locale.Tr "admin.total" .Total}})
|
||||||
</h4>
|
</h4>
|
||||||
<table class="ui attached basic select selectable table unstackable g-table-auto-ellipsis">
|
<table class="ui attached segment select selectable striped table unstackable g-table-auto-ellipsis">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{if $.CanWriteProjects}}
|
{{if $.CanWriteProjects}}
|
||||||
<div class="column right aligned">
|
<div class="column right aligned">
|
||||||
<div class="ui compact right small menu">
|
<div class="ui compact right mini menu">
|
||||||
<a class="item" href="{{$.Link}}/edit?redirect=project">
|
<a class="item" href="{{$.Link}}/edit?redirect=project">
|
||||||
{{svg "octicon-pencil"}}
|
{{svg "octicon-pencil"}}
|
||||||
<span class="gt-mx-3">{{$.locale.Tr "repo.issues.label_edit"}}</span>
|
<span class="gt-mx-3">{{$.locale.Tr "repo.issues.label_edit"}}</span>
|
||||||
|
|
|
@ -33,10 +33,14 @@
|
||||||
{{if .IsClosed}}
|
{{if .IsClosed}}
|
||||||
{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
|
{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{svg "octicon-calendar"}}
|
|
||||||
{{if .Milestone.DeadlineString}}
|
{{if .Milestone.DeadlineString}}
|
||||||
<span {{if .IsOverdue}}class="overdue"{{end}}>{{DateTime "short" .Milestone.DeadlineString}}</span>
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
||||||
|
{{svg "octicon-calendar"}}
|
||||||
|
{{DateTime "short" .Milestone.DeadlineString}}
|
||||||
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
{{svg "octicon-calendar"}}
|
||||||
{{$.locale.Tr "repo.milestones.no_due_date"}}
|
{{$.locale.Tr "repo.milestones.no_due_date"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -94,12 +94,13 @@
|
||||||
{{svg "octicon-clock" 14}}
|
{{svg "octicon-clock" 14}}
|
||||||
{{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
|
{{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{svg "octicon-calendar" 14}}
|
|
||||||
{{if .DeadlineString}}
|
{{if .DeadlineString}}
|
||||||
<span {{if .IsOverdue}}class="overdue"{{end}}>
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
||||||
|
{{svg "octicon-calendar" 14}}
|
||||||
{{DateTime "short" .DeadlineString}}
|
{{DateTime "short" .DeadlineString}}
|
||||||
</span>
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
{{svg "octicon-calendar" 14}}
|
||||||
{{$.locale.Tr "repo.milestones.no_due_date"}}
|
{{$.locale.Tr "repo.milestones.no_due_date"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
|
{{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
|
||||||
<div class="column right aligned">
|
<div class="column right aligned">
|
||||||
<div class="ui compact right small menu">
|
<div class="ui compact right mini menu">
|
||||||
<a class="item" href="{{$.RepoLink}}/projects/{{.Project.ID}}/edit?redirect=project">
|
<a class="item" href="{{$.RepoLink}}/projects/{{.Project.ID}}/edit?redirect=project">
|
||||||
{{svg "octicon-pencil"}}
|
{{svg "octicon-pencil"}}
|
||||||
<span class="gt-mx-3">{{$.locale.Tr "repo.issues.label_edit"}}</span>
|
<span class="gt-mx-3">{{$.locale.Tr "repo.issues.label_edit"}}</span>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{{if .HasParentPath}}
|
{{if .HasParentPath}}
|
||||||
<tr class="has-parent">
|
<tr class="has-parent">
|
||||||
<td colspan="3">{{svg "octicon-reply"}}<a href="{{.BranchLink}}{{if .ParentPath}}{{PathEscapeSegments .ParentPath}}{{end}}">..</a></td>
|
<td colspan="3">{{svg "octicon-reply"}}<a class="muted" href="{{.BranchLink}}{{if .ParentPath}}{{PathEscapeSegments .ParentPath}}{{end}}">..</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{range $item := .Files}}
|
{{range $item := .Files}}
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if ne .DeadlineUnix 0}}
|
{{if ne .DeadlineUnix 0}}
|
||||||
<span class="due-date" data-tooltip-content="{{$.locale.Tr "repo.issues.due_date"}}">
|
<span class="due-date" data-tooltip-content="{{$.locale.Tr "repo.issues.due_date"}}">
|
||||||
<span{{if .IsOverdue}} class="overdue"{{end}}>
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
||||||
{{svg "octicon-calendar" 14 "gt-mr-2"}}
|
{{svg "octicon-calendar" 14 "gt-mr-2"}}
|
||||||
{{DateTime "short" .DeadlineUnix}}
|
{{DateTime "short" .DeadlineUnix}}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -115,12 +115,13 @@
|
||||||
{{svg "octicon-clock" 14}}
|
{{svg "octicon-clock" 14}}
|
||||||
{{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
|
{{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{svg "octicon-calendar" 14}}
|
|
||||||
{{if .DeadlineString}}
|
{{if .DeadlineString}}
|
||||||
<span {{if .IsOverdue}}class="overdue"{{end}}>
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
||||||
|
{{svg "octicon-calendar" 14}}
|
||||||
{{DateTime "short" .DeadlineString}}
|
{{DateTime "short" .DeadlineString}}
|
||||||
</span>
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
{{svg "octicon-calendar" 14}}
|
||||||
{{$.locale.Tr "repo.milestones.no_due_date"}}
|
{{$.locale.Tr "repo.milestones.no_due_date"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{avatar $.Context . 28 "mini"}}
|
<div class="content gt-df gt-ac gt-gap-3">
|
||||||
<div class="content">
|
{{avatar $.Context . 28 "mini"}}
|
||||||
<a href="{{.HomeLink}}">{{.Name}}</a>
|
<a class="muted" href="{{.HomeLink}}">{{.Name}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="icon">{{svg "octicon-repo"}}</span>
|
<span class="icon">{{svg "octicon-repo"}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
<a class="name" href="{{$repo.Link}}">{{$repo.OwnerName}}/{{$repo.Name}}</a>
|
<a class="muted name" href="{{$repo.Link}}">{{$repo.OwnerName}}/{{$repo.Name}}</a>
|
||||||
<span>{{FileSize $repo.Size}}</span>
|
<span class="text light-3">{{FileSize $repo.Size}}</span>
|
||||||
{{if $repo.IsFork}}
|
{{if $repo.IsFork}}
|
||||||
{{$.locale.Tr "repo.forked_from"}}
|
{{$.locale.Tr "repo.forked_from"}}
|
||||||
<span><a href="{{$repo.BaseRepo.Link}}">{{$repo.BaseRepo.OwnerName}}/{{$repo.BaseRepo.Name}}</a></span>
|
<span><a href="{{$repo.BaseRepo.Link}}">{{$repo.BaseRepo.OwnerName}}/{{$repo.BaseRepo.Name}}</a></span>
|
||||||
|
|
|
@ -869,6 +869,13 @@ a.label,
|
||||||
border-color: var(--color-secondary);
|
border-color: var(--color-secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ui.table > tfoot > tr > th,
|
||||||
|
.ui.table > tfoot > tr > td {
|
||||||
|
border-color: var(--color-secondary);
|
||||||
|
background: var(--color-box-body);
|
||||||
|
color: var(--color-text);
|
||||||
|
}
|
||||||
|
|
||||||
img.ui.avatar,
|
img.ui.avatar,
|
||||||
.ui.avatar img,
|
.ui.avatar img,
|
||||||
.ui.avatar svg {
|
.ui.avatar svg {
|
||||||
|
|
|
@ -1947,10 +1947,6 @@
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repository.settings.collaboration .collaborator.list > .item:not(:last-child) {
|
|
||||||
border-bottom: 1px solid var(--color-secondary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.repository.settings.collaboration #repo-collab-form #search-user-box .results {
|
.repository.settings.collaboration #repo-collab-form #search-user-box .results {
|
||||||
left: 7px;
|
left: 7px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,10 +135,6 @@
|
||||||
margin-right: -4px;
|
margin-right: -4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.issue.list > .item .desc .overdue {
|
|
||||||
color: var(--color-red);
|
|
||||||
}
|
|
||||||
|
|
||||||
.issue.list .branches {
|
.issue.list .branches {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
|
|
|
@ -44,10 +44,6 @@
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.milestone-toolbar .group .overdue {
|
|
||||||
color: var(--color-red);
|
|
||||||
}
|
|
||||||
|
|
||||||
.milestone-toolbar .group > a {
|
.milestone-toolbar .group > a {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: var(--color-text-light-2);
|
color: var(--color-text-light-2);
|
||||||
|
|
Loading…
Reference in New Issue