浏览代码

Fixes layout for the FileField

Mikalai Radchuk 6 年之前
父节点
当前提交
d2d8b2c9e3
共有 3 个文件被更改,包括 23 次插入0 次删除
  1. 1 0
      CHANGELOG.txt
  2. 21 0
      client/scss/elements/_forms.scss
  3. 1 0
      docs/releases/2.7.rst

+ 1 - 0
CHANGELOG.txt

@@ -23,6 +23,7 @@ Changelog
  * Fix: Specific page permission checks are now enforced when viewing a page revision (Andy Chosak)
  * Fix: `pageurl` and `slugurl` tags no longer fail when `request.site` is `None` (Samir Shah)
  * Fix: Output form media on add/edit image forms with custom models (Matt Westcott)
+ * Fix: Layout for the clear checkbox in default FileField widget (Mikalai Radchuk)
 
 
 2.6.1 (05.08.2019)

+ 21 - 0
client/scss/elements/_forms.scss

@@ -105,6 +105,27 @@ select::-ms-expand {
     display: none;
 }
 
+.file_field {
+    .input {
+        label {
+            float: none;
+            display: inline;
+            padding: 0;
+        }
+
+        input[type=checkbox] {
+            margin-top: 5px;
+        }
+
+        a {
+            &:after {
+                content: ' ';
+                display: block;
+            }
+        }
+    }
+}
+
 
 // radio and check boxes
 input[type=radio],

+ 1 - 0
docs/releases/2.7.rst

@@ -44,6 +44,7 @@ Bug fixes
  * Specific page permission checks are now enforced when viewing a page revision (Andy Chosak)
  * ``pageurl`` and ``slugurl`` tags no longer fail when ``request.site`` is ``None`` (Samir Shah)
  * Output form media on add/edit image forms with custom models (Matt Westcott)
+ * Fixes layout for the clear checkbox in default FileField widget (Mikalai Radchuk)
 
 
 Upgrade considerations