Commit b6849b8 0ko
committed
File tree 8 files changed +29
-30
lines changed
8 files changed +29
-30
lines changed Original file line number Diff line number Diff line change 71
71
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
72
72
<div class="ui dropdown custom">
73
73
<button class="branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex tw-m-0">
74
- <span class="text tw-flex tw-items-center tw-mr-1">
74
+ <span class="text tw-flex tw-items-center tw-mr-1 gt-ellipsis ">
75
75
{{if .release}}
76
76
{{ctx.Locale.Tr "repo.release.compare"}}
77
77
{{else}}
80
80
{{else}}
81
81
{{svg "octicon-git-branch"}}
82
82
{{end}}
83
- <strong ref="dropdownRefName" class="tw-ml-2">{{if and .root.IsViewTag (not .noTag)}}{{.root.TagName}}{{else if .root.IsViewBranch}}{{.root.BranchName}}{{else}}{{ShortSha .root.CommitID}}{{end}}</strong>
83
+ <strong ref="dropdownRefName" class="tw-ml-2 tw-inline-block gt-ellipsis ">{{if and .root.IsViewTag (not .noTag)}}{{.root.TagName}}{{else if .root.IsViewBranch}}{{.root.BranchName}}{{else}}{{ShortSha .root.CommitID}}{{end}}</strong>
84
84
{{end}}
85
85
</span>
86
86
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
Original file line number Diff line number Diff line change 5
5
{{$.CsrfTokenHtml}}
6
6
</form>
7
7
{{/* TODO: share this branch selector dropdown with the same in repo page */}}
8
- <div class="ui {{if not .HasIssuesOrPullsWritePermission}}disabled{{end}} floating filter select-branch dropdown" data-no-results="{{ctx.Locale.Tr "repo.pulls.no_results"}}">
8
+ <div class="ui {{if not .HasIssuesOrPullsWritePermission}}disabled{{end}} floating filter select-branch dropdown tw-max-w-full " data-no-results="{{ctx.Locale.Tr "repo.pulls.no_results"}}">
9
9
<div class="ui basic small button">
10
- <span class="text branch-name">{{if .Reference}}{{$.RefEndName}}{{else}}{{ctx.Locale.Tr "repo.issues.no_ref"}}{{end}}</span>
10
+ <span class="text branch-name gt-ellipsis ">{{if .Reference}}{{$.RefEndName}}{{else}}{{ctx.Locale.Tr "repo.issues.no_ref"}}{{end}}</span>
11
11
{{if .HasIssuesOrPullsWritePermission}}{{svg "octicon-triangle-down" 14 "dropdown icon"}}{{end}}
12
12
</div>
13
13
<div class="menu">
37
37
<div class="item text small" data-id="" data-id-selector="#ref_selector"><strong><a href="#">{{ctx.Locale.Tr "repo.clear_ref"}}</a></strong></div>
38
38
{{end}}
39
39
{{range .Branches}}
40
- <div class="item" data-id="refs/heads/{{.}}" data-name="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
40
+ <div class="item" data-id="refs/heads/{{.}}" data-name="{{.}}" data-id-selector="#ref_selector" title="{{.}}" >{{.}}</div>
41
41
{{else}}
42
42
<div class="item">{{ctx.Locale.Tr "repo.pulls.no_results"}}</div>
43
43
{{end}}
Original file line number Diff line number Diff line change 47
47
{{else}}
48
48
<div class="ui green label issue-state-label">{{svg "octicon-issue-opened"}} {{ctx.Locale.Tr "repo.issues.open_title"}}</div>
49
49
{{end}}
50
- <div class="tw-ml-2">
50
+ <div class="tw-ml-2 tw-flex-1 tw-break-anywhere ">
51
51
{{if .Issue.IsPull}}
52
52
{{$headHref := .HeadTarget}}
53
53
{{if .HeadBranchLink}}
Original file line number Diff line number Diff line change 88
88
</div>
89
89
{{end}}
90
90
{{if and .Milestone (ne $.listType "milestone")}}
91
- <a class="milestone flex-text-inline" {{if $.RepoLink}}href="{{$.RepoLink}}/milestone/{{.Milestone.ID}}"{{else}}href="{{.Repo.Link}}/milestone/{{.Milestone.ID}}"{{end}}>
92
- {{svg "octicon-milestone" 14}}{{.Milestone.Name}}
91
+ <a class="milestone flex-text-inline tw-max-w-[300px]" {{if $.RepoLink}}href="{{$.RepoLink}}/milestone/{{.Milestone.ID}}"{{else}}href="{{.Repo.Link}}/milestone/{{.Milestone.ID}}"{{end}}>
92
+ {{svg "octicon-milestone" 14}}
93
+ <span class="gt-ellipsis">{{.Milestone.Name}}</span>
93
94
</a>
94
95
{{end}}
95
96
{{if .Project}}
96
- <a class="project flex-text-inline" href="{{.Project.Link ctx}}">
97
- {{svg .Project.IconName 14}}{{.Project.Title}}
97
+ <a class="project flex-text-inline tw-max-w-[300px]" href="{{.Project.Link ctx}}">
98
+ {{svg .Project.IconName 14}}
99
+ <span class="gt-ellipsis">{{.Project.Title}}</span>
98
100
</a>
99
101
{{end}}
100
102
{{if .Ref}}
101
- <a class="ref flex-text-inline" {{if $.RepoLink}}href="{{index $.IssueRefURLs .ID}}"{{else}}href="{{.Repo.Link}}{{index $.IssueRefURLs .ID}}"{{end}}>
102
- {{svg "octicon-git-branch" 14}}{{index $.IssueRefEndNames .ID}}
103
+ <a class="ref flex-text-inline tw-max-w-[300px]" {{if $.RepoLink}}href="{{index $.IssueRefURLs .ID}}"{{else}}href="{{.Repo.Link}}{{index $.IssueRefURLs .ID}}"{{end}}>
104
+ {{svg "octicon-git-branch" 14}}
105
+ <span class="gt-ellipsis">{{index $.IssueRefEndNames .ID}}</span>
103
106
</a>
104
107
{{end}}
105
108
{{$tasks := .GetTasks}}
Original file line number Diff line number Diff line change @@ -423,6 +423,8 @@ a.label,
423
423
424
424
.ui .dropdown .menu > .item {
425
425
color : var (--color-text );
426
+ overflow : hidden;
427
+ text-overflow : ellipsis;
426
428
}
427
429
428
430
.ui .dropdown .menu > .item : hover {
Original file line number Diff line number Diff line change 50
50
width : 300px ;
51
51
}
52
52
53
+ .issue-content-right .dropdown > .menu {
54
+ max-width : 270px ;
55
+ min-width : 0 ;
56
+ }
57
+
53
58
@media (max-width : 767.98px ) {
54
59
.issue-content-left ,
55
60
.issue-content-right {
56
61
width : 100% ;
57
62
}
58
63
}
59
64
60
- .repository .issue-content-right .menu {
61
- overflow-x : auto;
62
- max-height : 500px ;
63
- }
64
-
65
65
.repository .issue-content-right .ui .list .dependency {
66
66
padding : 0 ;
67
67
white-space : nowrap;
113
113
left : 0 ;
114
114
}
115
115
116
- .repository .filter .menu .ui .dropdown .menu .item {
117
- overflow : hidden;
118
- text-overflow : ellipsis;
119
- }
120
-
121
116
.repository .select-label .desc {
122
117
padding-left : 23px ;
123
118
}
@@ -666,6 +661,7 @@ td .commit-summary {
666
661
font-size : 14px !important ;
667
662
padding : 7px 10px !important ;
668
663
border-radius : var (--border-radius-medium ) !important ;
664
+ flex-shrink : 0 ;
669
665
}
670
666
671
667
.issue-state-label .svg {
@@ -1186,10 +1182,6 @@ td .commit-summary {
1186
1182
color : var (--color-text-light-2 );
1187
1183
}
1188
1184
1189
- .repository .ui .dropdown .filter > .menu {
1190
- margin-top : 1px ;
1191
- }
1192
-
1193
1185
.repository .branches .commit-divergence .bar-group {
1194
1186
position : relative;
1195
1187
float : left;
Original file line number Diff line number Diff line change 74
74
}
75
75
76
76
# issue-list .flex-item-body .branches .branch {
77
- background-color : var (--color-secondary-alpha-40 );
77
+ background-color : var (--color-secondary-alpha-50 );
78
78
border-radius : var (--border-radius );
79
79
padding : 0 4px ;
80
80
}
83
83
white-space : nowrap;
84
84
overflow : hidden;
85
85
text-overflow : ellipsis;
86
- max-width : 10em ;
86
+ max-width : 200px ;
87
+ display : inline-block;
88
+ vertical-align : top;
87
89
}
88
90
89
91
# issue-list .flex-item-body .checklist progress {
Original file line number Diff line number Diff line change @@ -248,12 +248,12 @@ export default sfc; // activate IDE's Vue plugin
248
248
< template>
249
249
< div class = " ui dropdown custom" >
250
250
< button class = " branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex tw-m-0" @click= " menuVisible = !menuVisible" @keyup .enter = " menuVisible = !menuVisible" >
251
- < span class = " text tw-flex tw-items-center tw-mr-1" >
251
+ < span class = " text tw-flex tw-items-center tw-mr-1 gt-ellipsis " >
252
252
< template v- if = " release" > {{ textReleaseCompare }}< / template>
253
253
< template v- else >
254
254
< svg- icon v- if = " isViewTag" name= " octicon-tag" / >
255
255
< svg- icon v- else name= " octicon-git-branch" / >
256
- < strong ref= " dropdownRefName" class = " tw-ml-2" > {{ refNameText }}< / strong>
256
+ < strong ref= " dropdownRefName" class = " tw-ml-2 tw-inline-block gt-ellipsis " > {{ refNameText }}< / strong>
257
257
< / template>
258
258
< / span>
259
259
< svg- icon name= " octicon-triangle-down" : size= " 14" class - name= " dropdown icon" / >
You can’t perform that action at this time.
0 commit comments