File tree Expand file tree Collapse file tree 21 files changed +116
-128
lines changed Expand file tree Collapse file tree 21 files changed +116
-128
lines changed Original file line number Diff line number Diff line change 75
75
<h2>Selection</h2>
76
76
<div>
77
77
{{/* the "selection" class is optional, it will be added by JS automatically */}}
78
- <select class="ui dropdown selection ellipsis-items-nowrap ">
78
+ <select class="ui dropdown selection ellipsis-text-items ">
79
79
<option>a</option>
80
80
<option>abcdefuvwxyz</option>
81
81
<option>loooooooooooooooooooooooooooooooooooooooooooooooooooooooooong</option>
82
82
</select>
83
- <select class="ui dropdown ellipsis-items-nowrap tw-max-w-[8em]">
83
+ <select class="ui dropdown ellipsis-text-items tw-max-w-[8em]">
84
84
<option>loooooooooooooooooooooooooooooooooooooooooooooooooooooooooong</option>
85
85
<option>abcdefuvwxyz</option>
86
86
<option>a</option>
Original file line number Diff line number Diff line change 10
10
<span class="ui inline required field">
11
11
<label>{{ctx.Locale.Tr "actions.workflow.from_ref"}}:</label>
12
12
</span>
13
- <div class="ui inline field dropdown button select-branch branch-selector-dropdown ellipsis-items-nowrap ">
13
+ <div class="ui inline field dropdown button select-branch branch-selector-dropdown ellipsis-text-items ">
14
14
<input type="hidden" name="ref" hx-sync="this:replace" hx-target="#runWorkflowDispatchModalInputs" hx-swap="innerHTML" hx-get="{{$.Link}}/workflow-dispatch-inputs?workflow={{$.CurWorkflow}}" hx-trigger="change" value="refs/heads/{{index .Branches 0}}">
15
15
{{svg "octicon-git-branch" 14}}
16
16
<div class="default text">{{index .Branches 0}}</div>
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Search "repo/branch_dropdown" in the template directory to find all occurrences.
46
46
data-enable-feed="{{ctx.RootData.EnableFeed}}"
47
47
>
48
48
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
49
- <div class="ui dropdown custom branch-selector-dropdown ellipsis-items-nowrap ">
49
+ <div class="ui dropdown custom branch-selector-dropdown ellipsis-text-items ">
50
50
<div class="ui button branch-dropdown-button">
51
51
<span class="flex-text-block gt-ellipsis">
52
52
{{if not .DropdownFixedText}}
Original file line number Diff line number Diff line change 12
12
<div id="create-repo-error-message" class="ui negative message tw-text-center tw-hidden"></div>
13
13
<div class="inline required field {{if .Err_Owner}}error{{end}}">
14
14
<label>{{ctx.Locale.Tr "repo.owner"}}</label>
15
- <div class="ui selection dropdown" id="repo_owner_dropdown">
15
+ <div class="ui selection dropdown ellipsis-text-items " id="repo_owner_dropdown">
16
16
<input type="hidden" name="uid" value="{{.ContextUser.ID}}">
17
- <span class="text truncated-item-name "></span>
17
+ <span class="text"></span>
18
18
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
19
19
<div class="menu">
20
- <div class="item truncated-item-container " data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"
20
+ <div class="item" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"
21
21
{{if not .CanCreateRepoInDoer}}
22
22
data-create-repo-disallowed-prompt="{{ctx.Locale.TrN .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .MaxCreationLimitOfDoer}}"
23
23
{{end}}
24
24
>
25
25
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
26
- <span class="truncated-item-name"> {{.SignedUser.ShortName 40}}</span>
26
+ {{.SignedUser.ShortName 40}}
27
27
</div>
28
28
{{range .Orgs}}
29
- <div class="item truncated-item-container " data-value="{{.ID}}" title="{{.Name}}">
29
+ <div class="item" data-value="{{.ID}}" title="{{.Name}}">
30
30
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
31
- <span class="truncated-item-name"> {{.ShortName 40}}</span>
31
+ {{.ShortName 40}}
32
32
</div>
33
33
{{end}}
34
34
</div>
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Still needs to figure out:
14
14
*/}}
15
15
{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
16
16
<input id="ref_selector" name="ref" type="hidden" value="{{.Reference}}">
17
- <div class="ui dropdown select-branch branch-selector-dropdown ellipsis-items-nowrap {{if not .HasIssuesOrPullsWritePermission}}disabled{{end}}"
17
+ <div class="ui dropdown select-branch branch-selector-dropdown ellipsis-text-items {{if not .HasIssuesOrPullsWritePermission}}disabled{{end}}"
18
18
data-no-results="{{ctx.Locale.Tr "no_results_found"}}"
19
19
{{if and .Issue (or .IsIssueWriter .HasIssuesOrPullsWritePermission)}}data-url-update-issueref="{{$.RepoLink}}/issues/{{.Issue.Index}}/ref"{{end}}
20
20
>
Original file line number Diff line number Diff line change 7
7
{{.CsrfTokenHtml}}
8
8
<div class="field">
9
9
<label><strong>{{ctx.Locale.Tr "repository"}}</strong></label>
10
- <div class="ui search selection dropdown issue_reference_repository_search ellipsis-items-nowrap ">
10
+ <div class="ui search selection dropdown issue_reference_repository_search ellipsis-text-items ">
11
11
<div class="default text gt-ellipsis">{{.Repository.FullName}}</div>
12
12
<div class="menu"></div>
13
13
</div>
Original file line number Diff line number Diff line change 60
60
61
61
<div class="inline required field {{if .Err_Owner}}error{{end}}">
62
62
<label>{{ctx.Locale.Tr "repo.owner"}}</label>
63
- <div class="ui selection owner dropdown">
63
+ <div class="ui selection owner dropdown ellipsis-text-items ">
64
64
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
65
- <span class="text truncated-item-container " title="{{.ContextUser.Name}}">
65
+ <span class="text" title="{{.ContextUser.Name}}">
66
66
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
67
- <span class="truncated-item-name"> {{.ContextUser.ShortName 40}}</span>
67
+ {{.ContextUser.ShortName 40}}
68
68
</span>
69
69
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
70
70
<div class="menu" title="{{.SignedUser.Name}}">
71
- <div class="item truncated-item-container " data-value="{{.SignedUser.ID}}">
71
+ <div class="item" data-value="{{.SignedUser.ID}}">
72
72
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
73
- <span class="truncated-item-name"> {{.SignedUser.ShortName 40}}</span>
73
+ {{.SignedUser.ShortName 40}}
74
74
</div>
75
75
{{range .Orgs}}
76
- <div class="item truncated-item-container " data-value="{{.ID}}" title="{{.Name}}">
76
+ <div class="item" data-value="{{.ID}}" title="{{.Name}}">
77
77
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
78
- <span class="truncated-item-name"> {{.ShortName 40}}</span>
78
+ {{.ShortName 40}}
79
79
</div>
80
80
{{end}}
81
81
</div>
Original file line number Diff line number Diff line change 61
61
62
62
<div class="inline required field {{if .Err_Owner}}error{{end}}">
63
63
<label>{{ctx.Locale.Tr "repo.owner"}}</label>
64
- <div class="ui selection owner dropdown">
64
+ <div class="ui selection owner dropdown ellipsis-text-items ">
65
65
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
66
- <span class="text truncated-item-container " title="{{.ContextUser.Name}}">
66
+ <span class="text" title="{{.ContextUser.Name}}">
67
67
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
68
- <span class="truncated-item-name"> {{.ContextUser.ShortName 40}}</span>
68
+ {{.ContextUser.ShortName 40}}
69
69
</span>
70
70
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
71
71
<div class="menu" title="{{.SignedUser.Name}}">
72
- <div class="item truncated-item-container " data-value="{{.SignedUser.ID}}">
72
+ <div class="item" data-value="{{.SignedUser.ID}}">
73
73
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
74
- <span class="truncated-item-name"> {{.SignedUser.ShortName 40}}</span>
74
+ {{.SignedUser.ShortName 40}}
75
75
</div>
76
76
{{range .Orgs}}
77
- <div class="item truncated-item-container " data-value="{{.ID}}" title="{{.Name}}">
77
+ <div class="item" data-value="{{.ID}}" title="{{.Name}}">
78
78
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
79
- <span class="truncated-item-name"> {{.ShortName 40}}</span>
79
+ {{.ShortName 40}}
80
80
</div>
81
81
{{end}}
82
82
</div>
Original file line number Diff line number Diff line change 34
34
35
35
<div class="inline required field {{if .Err_Owner}}error{{end}}">
36
36
<label>{{ctx.Locale.Tr "repo.owner"}}</label>
37
- <div class="ui selection owner dropdown">
37
+ <div class="ui selection owner dropdown ellipsis-text-items ">
38
38
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
39
- <span class="text truncated-item-container " title="{{.ContextUser.Name}}">
39
+ <span class="text" title="{{.ContextUser.Name}}">
40
40
{{ctx.AvatarUtils.Avatar .ContextUser}}
41
- <span class="truncated-item-name"> {{.ContextUser.ShortName 40}}</span>
41
+ {{.ContextUser.ShortName 40}}
42
42
</span>
43
43
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
44
44
<div class="menu" title="{{.SignedUser.Name}}">
45
- <div class="item truncated-item-container " data-value="{{.SignedUser.ID}}">
45
+ <div class="item" data-value="{{.SignedUser.ID}}">
46
46
{{ctx.AvatarUtils.Avatar .SignedUser}}
47
- <span class="truncated-item-name"> {{.SignedUser.ShortName 40}}</span>
47
+ {{.SignedUser.ShortName 40}}
48
48
</div>
49
49
{{range .Orgs}}
50
- <div class="item truncated-item-container " data-value="{{.ID}}" title="{{.Name}}">
50
+ <div class="item" data-value="{{.ID}}" title="{{.Name}}">
51
51
{{ctx.AvatarUtils.Avatar .}}
52
- <span class="truncated-item-name"> {{.ShortName 40}}</span>
52
+ {{.ShortName 40}}
53
53
</div>
54
54
{{end}}
55
55
</div>
Original file line number Diff line number Diff line change 76
76
77
77
<div class="inline required field {{if .Err_Owner}}error{{end}}">
78
78
<label>{{ctx.Locale.Tr "repo.owner"}}</label>
79
- <div class="ui selection owner dropdown">
79
+ <div class="ui selection owner dropdown ellipsis-text-items ">
80
80
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
81
- <span class="text truncated-item-container " title="{{.ContextUser.Name}}">
81
+ <span class="text" title="{{.ContextUser.Name}}">
82
82
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
83
- <span class="truncated-item-name"> {{.ContextUser.ShortName 40}}</span>
83
+ {{.ContextUser.ShortName 40}}
84
84
</span>
85
85
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
86
86
<div class="menu" title="{{.SignedUser.Name}}">
87
- <div class="item truncated-item-container " data-value="{{.SignedUser.ID}}">
87
+ <div class="item" data-value="{{.SignedUser.ID}}">
88
88
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
89
- <span class="truncated-item-name"> {{.SignedUser.ShortName 40}}</span>
89
+ {{.SignedUser.ShortName 40}}
90
90
</div>
91
91
{{range .Orgs}}
92
- <div class="item truncated-item-container " data-value="{{.ID}}" title="{{.Name}}">
92
+ <div class="item" data-value="{{.ID}}" title="{{.Name}}">
93
93
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
94
- <span class="truncated-item-name"> {{.ShortName 40}}</span>
94
+ {{.ShortName 40}}
95
95
</div>
96
96
{{end}}
97
97
</div>
You can’t perform that action at this time.
0 commit comments