Add alignment attributes for embedded notes

- justify-conent is for L-R alignment
- align-items is for T-B alignment
This commit is contained in:
BrokenEagle
2020-04-04 02:08:46 +00:00
parent 91e5ed67b7
commit a4ab165de7
2 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ import Utility from './utility'
let Note = {
HIDE_DELAY: 250,
NORMALIZE_ATTRIBUTES: ['letter-spacing', 'line-height', 'margin-left', 'margin-right', 'margin-top', 'margin-bottom', 'padding-left', 'padding-right', 'padding-top', 'padding-bottom'],
COPY_ATTRIBUTES: ['background-color', 'border-radius', 'transform'],
COPY_ATTRIBUTES: ['background-color', 'border-radius', 'transform', 'justify-content', 'align-items'],
permitted_style_values: function(attribute, $attribute_child) {
if ($attribute_child.length === 0) {
return "";