File tree 5 files changed +15
-21
lines changed
5 files changed +15
-21
lines changed Original file line number Diff line number Diff line change 1
1
{{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}
2
2
3
3
<div class="ui container tw-max-w-full">
4
- <div class="tw- flex tw-justify-between tw-items-center tw-mb-4 tw-gap-3 ">
5
- <h2 class="tw-mb-0 tw-flex-1 tw-break-anywhere ">{{.Project.Title}}</h2>
6
- <div class="project-toolbar-right" >
7
- <div class="ui secondary filter menu labels ">
4
+ <div class="flex-text-block tw-flex-wrap tw-mb-4">
5
+ <h2 class="tw-mb-0">{{.Project.Title}}</h2>
6
+ <div class="tw-flex-1"></div >
7
+ <div class="ui secondary menu tw-m-0 ">
8
8
{{$queryLink := QueryBuild "?" "labels" .SelectLabels "assignee" $.AssigneeID "archived_labels" (Iif $.ShowArchivedLabels "true")}}
9
9
10
10
{{template "repo/issue/filter_item_label" dict "Labels" .Labels "QueryLink" $queryLink "SupportArchivedLabel" true}}
19
19
"TextNegativeOne" (ctx.Locale.Tr "repo.issues.filter_assginee_no_assignee")
20
20
}}
21
21
</div>
22
- </div>
23
22
{{if $canWriteProject}}
24
23
<div class="ui compact mini menu">
25
24
<a class="item" href="{{.Link}}/edit?redirect=project">
Original file line number Diff line number Diff line change 14
14
</div>
15
15
{{end}}
16
16
17
- <div class="list-header">
18
- {{template "repo/issue/navbar" .}}
17
+ <div class="list-header flex-text-block">
19
18
{{template "repo/issue/search" .}}
19
+ <a class="ui small button" href="{{.RepoLink}}/labels">{{ctx.Locale.Tr "repo.labels"}}</a>
20
+ <a class="ui small button" href="{{.RepoLink}}/milestones">{{ctx.Locale.Tr "repo.milestones"}}</a>
20
21
{{if not .Repository.IsArchived}}
21
22
{{if .PageIsIssueList}}
22
23
<a class="ui small primary button issue-list-new" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
Original file line number Diff line number Diff line change 2
2
<div role="main" aria-label="{{.Title}}" class="page-content repository projects view-project">
3
3
{{template "repo/header" .}}
4
4
<div class="ui container padded">
5
- <div class="tw-flex tw-justify-between tw-items-center tw-mb-4">
6
- {{template "repo/issue/navbar" .}}
5
+ <div class="flex-text-block tw-justify-end tw-mb-4">
6
+ <a class="ui small button" href="{{.RepoLink}}/labels">{{ctx.Locale.Tr "repo.labels"}}</a>
7
+ <a class="ui small button" href="{{.RepoLink}}/milestones">{{ctx.Locale.Tr "repo.milestones"}}</a>
7
8
<a class="ui small primary button" href="{{.RepoLink}}/issues/new/choose?project={{.Project.ID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
8
9
</div>
9
10
</div>
Original file line number Diff line number Diff line change @@ -1384,6 +1384,11 @@ table th[data-sortt-desc] .svg {
1384
1384
min-width : 0 ;
1385
1385
}
1386
1386
1387
+ .flex-text-block > .ui .button ,
1388
+ .flex-text-inline > .ui .button {
1389
+ margin : 0 ; /* fomantic buttons have default margin, when we use them in a flex container with gap, we do not need these margins */
1390
+ }
1391
+
1387
1392
/* to override Fomantic's default display: block for ".menu .item", and use a slightly larger gap for menu item content
1388
1393
the "!important" is necessary to override Fomantic UI menu item styles, meanwhile we should keep the "hidden" items still hidden */
1389
1394
.ui .dropdown .menu .flex-items-menu > .item : not (.hidden , .filtered , .tw-hidden ) {
Original file line number Diff line number Diff line change 8
8
margin : 0 0.5em ;
9
9
}
10
10
11
- .project-toolbar-right .filter .menu {
12
- flex-direction : row;
13
- flex-wrap : wrap;
14
- }
15
-
16
- @media (max-width : 767.98px ) {
17
- .project-toolbar-right .dropdown .menu {
18
- left : auto !important ;
19
- right : auto !important ;
20
- }
21
- }
22
-
23
11
.project-column {
24
12
background-color : var (--color-project-column-bg ) !important ;
25
13
border : 1px solid var (--color-secondary ) !important ;
You can’t perform that action at this time.
0 commit comments