mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-25 02:47:28 +00:00
Desktop, Mobile: Editor: Fixed vertical alignement of checkboxes
This commit is contained in:
1 parent
8d90057453
commit
89884e941e
1 file changed
+4
@@ -71,7 +71,11 @@ const replaceCheckboxes = [
|
||||
width: '1.1em',
|
||||
height: '1.1em',
|
||||
margin: '4px',
|
||||
// `vertical-align: middle` aligns to the parent's x-height
|
||||
// midpoint, which sits below the visual centre of the line;
|
||||
// nudge up so the checkbox appears centred with the text.
|
||||
verticalAlign: 'middle',
|
||||
transform: 'translateY(calc(-0.1em - 1px))',
|
||||
},
|
||||
'&:not(.-depth-1) > input': {
|
||||
marginInlineStart: 0,
|
||||
|
||||
Reference in new issue
Block a user