Skip to content

Commit a92ab34

Browse files
xf-lafriks
authored andcommitted
Fix input size for dependency select (#6913)
1 parent 13583a6 commit a92ab34

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

public/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/less/_repository.less

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,9 +2244,18 @@ tbody.commit-list {
22442244
cursor: pointer;
22452245
}
22462246

2247-
@media only screen and (max-width: 768px) {
2248-
.new-dependency-drop-list {
2247+
#new-dependency-drop-list {
2248+
&.ui.selection.dropdown {
2249+
min-width: 0;
2250+
width: 100%;
2251+
border-radius: 4px 0 0 4px;
2252+
border-right: 0;
2253+
white-space: nowrap;
2254+
}
2255+
2256+
.text {
22492257
width: 100%;
2258+
overflow: hidden;
22502259
}
22512260
}
22522261

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
<form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/dependency/add" id="addDependencyForm">
322322
{{$.CsrfTokenHtml}}
323323
<div class="ui fluid action input">
324-
<div class="ui search selection dropdown" id="new-dependency-drop-list" data-issue-id="{{.Issue.ID}}" style="min-width: 13.9rem;border-radius: 4px 0 0 4px;border-right: 0;white-space: nowrap;">
324+
<div class="ui search selection dropdown" id="new-dependency-drop-list" data-issue-id="{{.Issue.ID}}">
325325
<input name="newDependency" type="hidden">
326326
<i class="dropdown icon"></i>
327327
<input type="text" class="search">

0 commit comments

Comments
 (0)