mirror of
https://github.com/primer/css.git
synced 2024-11-28 04:43:05 +03:00
Move default padding inside iframe
This allows things like the focus ring to not get cut off.
This commit is contained in:
parent
55e9291634
commit
4a399ac7f9
@ -35,7 +35,7 @@ export default function CodeExample(props) {
|
||||
return (
|
||||
<LiveProvider {...liveProps}>
|
||||
<BorderBox {...rest}>
|
||||
<BorderBox bg="white" p={3} border={0} borderBottom={1} borderRadius={0}>
|
||||
<BorderBox bg="white" border={0} borderBottom={1} borderRadius={0}>
|
||||
<Frame>
|
||||
<LivePreview />
|
||||
</Frame>
|
||||
|
@ -41,7 +41,7 @@ export default class Frame extends React.Component {
|
||||
return (
|
||||
<Measure bounds onResize={rect => this.setHeight(rect.bounds.height)}>
|
||||
{({measureRef}) => (
|
||||
<div ref={measureRef} style={{overflow: 'auto'}}>
|
||||
<div ref={measureRef} class="p-3 overflow-auto">
|
||||
{children}
|
||||
</div>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user