Skip to content

Commit c7be968

Browse files
authored
Merge pull request #377 from divio/bugfix/related-wrapper-links
Bugfixes - related-widget-links
2 parents 10fc948 + 6ef66ca commit c7be968

File tree

3 files changed

+15
-58
lines changed

3 files changed

+15
-58
lines changed

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
CHANGELOG
22
=========
33

4+
1.2.6 (unreleased)
5+
------------------
6+
7+
* Fixed an issue with related-widget-links display after filer widgets
8+
* Fixed an issue with related-widget-links when only change link was showing up
9+
after selects
10+
11+
412
1.2.5 (2016-10-04)
513
------------------
614

djangocms_admin_style/sass/components/_forms.scss

Lines changed: 6 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -65,63 +65,9 @@ form {
6565
display: none;
6666
}
6767
}
68-
// styles should only grab if there is an image upload
69-
// appears on form rows with file, image and visual in class name #242, #220
70-
&[class*="file"],
71-
&[class*="image"],
72-
&[class*="visual"] {
73-
.related-widget-wrapper-link {
74-
// hides related widget wrapper links because they don't work correctly and are not necessary
75-
// because of magnifier and delete link #220
76-
display: none;
77-
width: 36px;
78-
height: 36px;
79-
}
80-
input {
81-
width: calc(100% - 48px) !important;
82-
margin-bottom: 10px;
83-
}
84-
input[type="checkbox"] {
85-
width: auto !important;
86-
margin-bottom: 3px;
87-
}
88-
.related-lookup {
89-
float: right;
90-
width: 36px;
91-
height: 36px;
92-
}
93-
.file-upload {
94-
p {
95-
font-weight: normal;
96-
}
97-
a {
98-
position: relative;
99-
padding-left: 30px;
100-
&:before {
101-
position: absolute;
102-
left: 0;
103-
}
104-
}
105-
a,
106-
input[type="file"] {
107-
display: block;
108-
font-size: 16px;
109-
line-height: 16px;
110-
margin: 10px 0;
111-
}
112-
a:before {
113-
color: $gray;
114-
vertical-align: top;
115-
}
116-
.clearable-file-input {
117-
display: inline-block;
118-
margin-bottom: 20px;
119-
label {
120-
font-size: 16px;
121-
text-transform: none;
122-
}
123-
}
124-
}
68+
.filer-dropzone ~ .related-widget-wrapper-link {
69+
// hides related widget wrapper links because they don't work with filer dropzones
70+
display: none;
12571
}
12672
&.field-thumbnail {
12773
margin: 0;
@@ -896,6 +842,9 @@ form select[multiple] {
896842
margin-top: 0;
897843
&.change-related {
898844
margin-right: 5px;
845+
&:last-child {
846+
margin-right: 0;
847+
}
899848
}
900849
}
901850
// resets list styles that list looks same as sortedm2m #286

djangocms_admin_style/static/djangocms_admin_style/css/djangocms-admin.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.

0 commit comments

Comments
 (0)