Merge pull request #3816 from soulsands/fix-attr-ui

fix:don't break words for CJK text
This commit is contained in:
zadam 2023-04-09 22:47:02 +02:00 committed by GitHub
commit b2ed5a01b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,9 @@ const TPL = `
.promoted-attribute-cell div.input-group {
margin-left: 10px;
}
.promoted-attribute-cell strong {
word-break:keep-all;
}
</style>
<div class="promoted-attributes-container"></div>
@ -164,7 +167,7 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
}
}]);
$input.on('autocomplete:selected', e => this.promotedAttributeChanged(e))
$input.on('autocomplete:selected', e => this.promotedAttributeChanged(e));
});
}
else if (definition.labelType === 'number') {