mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-15 19:54:02 +02:00
Make Void
block component width 100%
. (#1142)
* Make `Void` block component width `100%`. * Update tests.
This commit is contained in:
committed by
Ian Storm Taylor
parent
33a36679d9
commit
1663e4b81c
@@ -144,7 +144,8 @@ class Void extends React.Component {
|
|||||||
Tag = 'div'
|
Tag = 'div'
|
||||||
style = {
|
style = {
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
verticalAlign: 'top'
|
verticalAlign: 'top',
|
||||||
|
width: '100%'
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Tag = 'span'
|
Tag = 'span'
|
||||||
|
@@ -29,7 +29,7 @@ export const output = `
|
|||||||
<span data-slate-zero-width="true"> </span>
|
<span data-slate-zero-width="true"> </span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<div contenteditable="false" style="display:inline-block;vertical-align:top;">
|
<div contenteditable="false" style="display:inline-block;vertical-align:top;width:100%;">
|
||||||
<img src="https://example.com/image.png">
|
<img src="https://example.com/image.png">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user