mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 08:34:28 +02:00
style fixes
This commit is contained in:
@@ -91,9 +91,7 @@ class Void extends React.Component {
|
|||||||
// Make the outer wrapper relative, so the spacer can overlay it.
|
// Make the outer wrapper relative, so the spacer can overlay it.
|
||||||
if (node.kind === 'block') {
|
if (node.kind === 'block') {
|
||||||
Tag = 'div'
|
Tag = 'div'
|
||||||
style = {
|
style = { position: 'relative' }
|
||||||
position: 'relative'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
Tag = 'span'
|
Tag = 'span'
|
||||||
}
|
}
|
||||||
@@ -139,8 +137,9 @@ class Void extends React.Component {
|
|||||||
textIndent: '-9999px'
|
textIndent: '-9999px'
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Set `color` to `transparent` to hide caret inside the spacer.
|
style = {
|
||||||
style = {color: 'transparent'}
|
color: 'transparent'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user