1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-15 11:44:05 +02:00

Make Void block component width 100%. (#1142)

* Make `Void` block component width `100%`.

* Update tests.
This commit is contained in:
AlbertHilb
2017-09-19 17:53:07 +02:00
committed by Ian Storm Taylor
parent 33a36679d9
commit 1663e4b81c
2 changed files with 3 additions and 2 deletions

View File

@@ -144,7 +144,8 @@ class Void extends React.Component {
Tag = 'div'
style = {
display: 'inline-block',
verticalAlign: 'top'
verticalAlign: 'top',
width: '100%'
}
} else {
Tag = 'span'

View File

@@ -29,7 +29,7 @@ export const output = `
<span data-slate-zero-width="true">&#x200A;</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">
</div>
</div>