diff --git a/src/init-card-reference.js b/src/init-card-reference.js index f7d2b448a..618a9065d 100644 --- a/src/init-card-reference.js +++ b/src/init-card-reference.js @@ -36,7 +36,6 @@ registerWidget('deck-card', (el, { richObjectType, richObject, accessible }) => // trick to change the wrapper element size, otherwise it always is 100% // which is not very nice with a simple card el.parentNode.style['max-width'] = '400px' - el.parentNode.style['min-width'] = '200px' el.parentNode.style['margin-left'] = '0' el.parentNode.style['margin-right'] = '0' diff --git a/src/views/CardReferenceWidget.vue b/src/views/CardReferenceWidget.vue index 75aefb890..a0d711690 100644 --- a/src/views/CardReferenceWidget.vue +++ b/src/views/CardReferenceWidget.vue @@ -179,6 +179,10 @@ export default { .deck-card-reference { width: 100%; + // needed for the specific case of Text + .editor__content & { + width: calc(100% - 24px); + } white-space: normal; padding: 12px;