Remove "attachment" from gallery terminology

This commit is contained in:
Javan Makhmali
2018-06-18 09:23:03 -04:00
parent abdd5e78d8
commit 69ce14404c
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -106,8 +106,8 @@
max-width: 33%;
}
&[data-trix-attachment-count="2"],
&[data-trix-attachment-count="4"] {
&[data-trix-gallery-size="2"],
&[data-trix-gallery-size="4"] {
.attachment-container {
flex-basis: 50%;
max-width: 50%;
+1 -1
View File
@@ -6,4 +6,4 @@ Trix.config.css =
attachmentCaption: "attachment__caption"
attachmentCaptionEditor: "attachment__caption-editor"
attachmentContainer: "attachment-container"
attachmentGallery: "attachment-gallery"
gallery: "attachment-gallery"
+2 -2
View File
@@ -33,9 +33,9 @@ class Trix.BlockView extends Trix.ObjectView
makeElement do =>
if attribute is "gallery"
tagName: "div"
className: css.attachmentGallery
className: css.gallery
attributes: role: "group"
data: trixAttachmentCount: @block.getBlockBreakPosition()
data: trixGallerySize: @block.getBlockBreakPosition()
else
{tagName} = getBlockConfig(attribute)
{tagName}