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 | 59 | |
60 | 60 | select { |
61 | 61 | &.chosen { |
62 | - min-width: 200px; | |
62 | + min-width: 100px; | |
63 | 63 | } |
64 | 64 | |
65 | 65 | &.chosen-sm { |
66 | 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
app/views/projects/issues/_issue_context.html.haml
1 | 1 | = form_for [@project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f| |
2 | - .pull-right | |
3 | 2 | Created by #{link_to_member(@project, issue.author)} |
4 | 3 | - if issue.assignee |
5 | 4 | \ and currently assigned to |
... | ... | @@ -12,7 +11,7 @@ |
12 | 11 | = link_to_member(@project, @issue.assignee) |
13 | 12 | |
14 | 13 | |
15 | - .pull-right | |
14 | + .pull-right.hidden-sm | |
16 | 15 | - if issue.milestone |
17 | 16 | - milestone = issue.milestone |
18 | 17 | %cite.cgray Attached to milestone | ... | ... |