improve markdown tab spacing
This commit is contained in:
parent
43d3ba1807
commit
39625f7e08
|
@ -214,10 +214,10 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, setH
|
||||||
<div className={`${styles.markdownInput} ${tab === 'write' ? styles.noTopLeftRadius : ''}`}>
|
<div className={`${styles.markdownInput} ${tab === 'write' ? styles.noTopLeftRadius : ''}`}>
|
||||||
<Nav variant='tabs' defaultActiveKey='write' activeKey={tab} onSelect={tab => setTab(tab)}>
|
<Nav variant='tabs' defaultActiveKey='write' activeKey={tab} onSelect={tab => setTab(tab)}>
|
||||||
<Nav.Item>
|
<Nav.Item>
|
||||||
<Nav.Link eventKey='write'>write</Nav.Link>
|
<Nav.Link className='py-1' eventKey='write'>write</Nav.Link>
|
||||||
</Nav.Item>
|
</Nav.Item>
|
||||||
<Nav.Item>
|
<Nav.Item>
|
||||||
<Nav.Link eventKey='preview' disabled={!meta.value}>preview</Nav.Link>
|
<Nav.Link className={styles.previewTab} eventKey='preview' disabled={!meta.value}>preview</Nav.Link>
|
||||||
</Nav.Item>
|
</Nav.Item>
|
||||||
<a
|
<a
|
||||||
className='ms-auto text-muted d-flex align-items-center'
|
className='ms-auto text-muted d-flex align-items-center'
|
||||||
|
|
|
@ -45,3 +45,8 @@
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
pointer-events: unset !important;
|
pointer-events: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.previewTab {
|
||||||
|
padding-top: .2rem;
|
||||||
|
padding-bottom: .3rem;
|
||||||
|
}
|
Loading…
Reference in New Issue