File tree 4 files changed +40
-19
lines changed
4 files changed +40
-19
lines changed Original file line number Diff line number Diff line change 9
9
SSH
10
10
</button>
11
11
{{end}}
12
- <input id="repo-clone-url" size="20 " class="js-clone-url" value="{{$.CloneButtonOriginLink.HTTPS}}" readonly>
12
+ <input id="repo-clone-url" size="10 " class="js-clone-url" value="{{$.CloneButtonOriginLink.HTTPS}}" readonly>
13
13
<button class="ui small icon button" id="clipboard-btn" data-tooltip-content="{{ctx.Locale.Tr "copy_url"}}" data-clipboard-target="#repo-clone-url" aria-label="{{ctx.Locale.Tr "copy_url"}}">
14
14
{{svg "octicon-copy" 14}}
15
15
</button>
Original file line number Diff line number Diff line change 46
46
{{$l := Eval $n "-" 1}}
47
47
{{$isHomepage := (eq $n 0)}}
48
48
<div class="repo-button-row">
49
- <div class="tw-flex tw-items-center tw-flex-wrap tw-gap-y -2">
49
+ <div class="repo-button-row-left tw-flex tw-flex-1 tw-items-center tw-gap-2">
50
50
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}}
51
51
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
52
52
{{$cmpBranch := ""}}
66
66
{{end}}
67
67
68
68
{{if and .CanWriteCode .IsViewBranch (not .Repository.IsMirror) (not .Repository.IsArchived) (not .IsViewFile)}}
69
- <button class="ui dropdown basic compact jump button tw-mr-1 "{{if not .Repository.CanEnableEditor}} disabled{{end}}>
69
+ <button class="ui dropdown basic compact jump button"{{if not .Repository.CanEnableEditor}} disabled{{end}}>
70
70
{{ctx.Locale.Tr "repo.editor.add_file"}}
71
71
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
72
72
<div class="menu">
104
104
</span>
105
105
{{end}}
106
106
107
- <form class="ignore-dirty" action="{{.RepoLink}}/search" method="get">
108
- <div class="ui small action input">
109
- <input name="q" value="{{.Keyword}}" placeholder="{{ctx.Locale.Tr "search.code_kind"}}">
107
+ <form class="tw-flex tw-flex-1" class=" ignore-dirty" action="{{.RepoLink}}/search" method="get">
108
+ <div class="ui small action input tw-flex-1 ">
109
+ <input name="q" value="{{.Keyword}}" size="10" placeholder="{{ctx.Locale.Tr "search.code_kind"}}">
110
110
{{template "shared/search/button"}}
111
111
</div>
112
112
</form>
113
113
</div>
114
- <div class="tw-flex tw-items-center">
114
+ <div class="repo-button-row-right tw-flex tw-flex-1 tw-items-center">
115
115
<!-- Only show clone panel in repository home page -->
116
116
{{if $isHomepage}}
117
117
<div class="clone-panel ui action tiny input">
Original file line number Diff line number Diff line change 188
188
.ui .action .input : not ([class *= "left action" ]) > input : focus + .ui .dropdown .selection : hover ,
189
189
.ui .action .input : not ([class *= "left action" ]) > input : focus + .button ,
190
190
.ui .action .input : not ([class *= "left action" ]) > input : focus + .button : hover ,
191
- .ui .action .input : not ([class *= "left action" ]) > input : focus + .icon + .button ,
192
- .ui .action .input : not ([class *= "left action" ]) > input : focus + .icon + .button : hover {
191
+ .ui .action .input : not ([class *= "left action" ]) > input : focus + i .icon + .button ,
192
+ .ui .action .input : not ([class *= "left action" ]) > input : focus + i .icon + .button : hover {
193
193
border-left-color : var (--color-primary );
194
194
}
195
195
.ui .action .input : not ([class *= "left action" ]) > input : focus {
Original file line number Diff line number Diff line change 128
128
margin-bottom : 12px ;
129
129
}
130
130
131
- .repository .clone-panel # repo-clone-url {
132
- width : 320 px ;
133
- border-radius : 0 ;
131
+ .repository .clone-panel {
132
+ display : flex ;
133
+ flex : 1 ;
134
134
}
135
135
136
- @media (max-width : 991.98px ) {
137
- .repository .clone-panel # repo-clone-url {
138
- width : 200px ;
139
- }
136
+ .repository .wiki .clone-panel {
137
+ flex : 0 ;
138
+ }
139
+
140
+ .repository .wiki .clone-panel input {
141
+ width : 20ch ;
142
+ }
143
+
144
+ .repository .clone-panel # repo-clone-url {
145
+ border-radius : 0 ;
146
+ flex : 1 ;
140
147
}
141
148
142
149
.repository .ui .action .input .clone-panel > button + button ,
@@ -2234,17 +2241,25 @@ td .commit-summary {
2234
2241
}
2235
2242
2236
2243
.repo-button-row {
2237
- margin : 10 px 0 ;
2244
+ margin : 8 px 0 ;
2238
2245
display : flex;
2239
2246
align-items : center;
2240
- gap : 0.5em ;
2241
- flex-wrap : wrap;
2247
+ gap : 8px ;
2242
2248
justify-content : space-between;
2243
2249
}
2244
2250
2251
+ @media (max-width : 991px ) {
2252
+ .repository : not (.wiki ) .repo-button-row {
2253
+ flex-direction : column;
2254
+ align-items : stretch;
2255
+ }
2256
+ }
2257
+
2245
2258
.repo-button-row .button {
2246
2259
padding : 6px 10px !important ;
2247
2260
height : 30px ;
2261
+ flex-shrink : 0 ;
2262
+ margin : 0 ;
2248
2263
}
2249
2264
2250
2265
.repo-button-row .button .dropdown : not (.icon ) {
@@ -2255,6 +2270,12 @@ td .commit-summary {
2255
2270
height : 30px ;
2256
2271
}
2257
2272
2273
+ @media (max-width : 600px ) {
2274
+ .repo-button-row-left {
2275
+ flex-wrap : wrap;
2276
+ }
2277
+ }
2278
+
2258
2279
tbody .commit-list {
2259
2280
vertical-align : baseline;
2260
2281
}
You can’t perform that action at this time.
0 commit comments