fix width issues

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
Julien Veyssier
2022-09-22 17:02:03 +02:00
parent 565b2edfdd
commit aecdcb847d
2 changed files with 4 additions and 1 deletions

View File

@@ -36,7 +36,6 @@ registerWidget('deck-card', (el, { richObjectType, richObject, accessible }) =>
// trick to change the wrapper element size, otherwise it always is 100% // trick to change the wrapper element size, otherwise it always is 100%
// which is not very nice with a simple card // which is not very nice with a simple card
el.parentNode.style['max-width'] = '400px' el.parentNode.style['max-width'] = '400px'
el.parentNode.style['min-width'] = '200px'
el.parentNode.style['margin-left'] = '0' el.parentNode.style['margin-left'] = '0'
el.parentNode.style['margin-right'] = '0' el.parentNode.style['margin-right'] = '0'

View File

@@ -179,6 +179,10 @@ export default {
.deck-card-reference { .deck-card-reference {
width: 100%; width: 100%;
// needed for the specific case of Text
.editor__content & {
width: calc(100% - 24px);
}
white-space: normal; white-space: normal;
padding: 12px; padding: 12px;