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:
committed by
Ian Storm Taylor
parent
33a36679d9
commit
1663e4b81c
@@ -144,7 +144,8 @@ class Void extends React.Component {
|
||||
Tag = 'div'
|
||||
style = {
|
||||
display: 'inline-block',
|
||||
verticalAlign: 'top'
|
||||
verticalAlign: 'top',
|
||||
width: '100%'
|
||||
}
|
||||
} else {
|
||||
Tag = 'span'
|
||||
|
@@ -29,7 +29,7 @@ export const output = `
|
||||
<span data-slate-zero-width="true"> </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>
|
||||
|
Reference in New Issue
Block a user