Skip to content

Commit aecdcb8

Browse files
author
Julien Veyssier
committed
fix width issues
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
1 parent 565b2ed commit aecdcb8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/init-card-reference.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ registerWidget('deck-card', (el, { richObjectType, richObject, accessible }) =>
3636
// trick to change the wrapper element size, otherwise it always is 100%
3737
// which is not very nice with a simple card
3838
el.parentNode.style['max-width'] = '400px'
39-
el.parentNode.style['min-width'] = '200px'
4039
el.parentNode.style['margin-left'] = '0'
4140
el.parentNode.style['margin-right'] = '0'
4241

src/views/CardReferenceWidget.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ export default {
179179
180180
.deck-card-reference {
181181
width: 100%;
182+
// needed for the specific case of Text
183+
.editor__content & {
184+
width: calc(100% - 24px);
185+
}
182186
white-space: normal;
183187
padding: 12px;
184188

0 commit comments

Comments
 (0)