Commit e680228bf21a20213560f93de1f573b4ab4c2f79
1 parent
35287f10
Exists in
spb-stable
and in
3 other branches
responsive chosen selects. Hide milestone dropdown for sm displays
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
28 additions
and
8 deletions
Show diff stats
app/assets/stylesheets/generic/selects.scss
@@ -59,10 +59,36 @@ | @@ -59,10 +59,36 @@ | ||
59 | 59 | ||
60 | select { | 60 | select { |
61 | &.chosen { | 61 | &.chosen { |
62 | - min-width: 200px; | 62 | + min-width: 100px; |
63 | } | 63 | } |
64 | 64 | ||
65 | &.chosen-sm { | 65 | &.chosen-sm { |
66 | min-width: 100px; | 66 | min-width: 100px; |
67 | } | 67 | } |
68 | } | 68 | } |
69 | + | ||
70 | +@media (min-width: $screen-sm-min) { | ||
71 | + select { | ||
72 | + &.chosen { | ||
73 | + min-width: 150px; | ||
74 | + } | ||
75 | + } | ||
76 | +} | ||
77 | + | ||
78 | +/* Medium devices (desktops, 992px and up) */ | ||
79 | +@media (min-width: $screen-md-min) { | ||
80 | + select { | ||
81 | + &.chosen { | ||
82 | + min-width: 170px; | ||
83 | + } | ||
84 | + } | ||
85 | +} | ||
86 | + | ||
87 | +/* Large devices (large desktops, 1200px and up) */ | ||
88 | +@media (min-width: $screen-lg-min) { | ||
89 | + select { | ||
90 | + &.chosen { | ||
91 | + min-width: 200px; | ||
92 | + } | ||
93 | + } | ||
94 | +} |
app/assets/stylesheets/sections/issues.scss
@@ -120,11 +120,6 @@ input.check_all_issues { | @@ -120,11 +120,6 @@ input.check_all_issues { | ||
120 | } | 120 | } |
121 | } | 121 | } |
122 | 122 | ||
123 | -.edit-issue.inline-update select { | ||
124 | - width: 100%; | ||
125 | - max-width: 200px; | ||
126 | -} | ||
127 | - | ||
128 | .issue-show-labels .label { | 123 | .issue-show-labels .label { |
129 | padding: 6px 10px; | 124 | padding: 6px 10px; |
130 | } | 125 | } |
app/views/projects/issues/_issue_context.html.haml
1 | = form_for [@project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f| | 1 | = form_for [@project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f| |
2 | - .pull-right | ||
3 | Created by #{link_to_member(@project, issue.author)} | 2 | Created by #{link_to_member(@project, issue.author)} |
4 | - if issue.assignee | 3 | - if issue.assignee |
5 | \ and currently assigned to | 4 | \ and currently assigned to |
@@ -12,7 +11,7 @@ | @@ -12,7 +11,7 @@ | ||
12 | = link_to_member(@project, @issue.assignee) | 11 | = link_to_member(@project, @issue.assignee) |
13 | 12 | ||
14 | 13 | ||
15 | - .pull-right | 14 | + .pull-right.hidden-sm |
16 | - if issue.milestone | 15 | - if issue.milestone |
17 | - milestone = issue.milestone | 16 | - milestone = issue.milestone |
18 | %cite.cgray Attached to milestone | 17 | %cite.cgray Attached to milestone |