mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Change viewport styling to more closely match v4
Styling for addon-viewport iframe was a 10px black border which was a little intrusive when working on stories. This commit changes the iframe style to a more familiar style that mimics v4 with horizontal centering and a subtle box-shadow.
This commit is contained in:
parent
745b6ebede
commit
e8303e270c
@ -129,9 +129,12 @@ export default class ViewportTool extends Component {
|
||||
<Global
|
||||
styles={{
|
||||
[`#${iframeId}`]: {
|
||||
border: '10px solid black',
|
||||
position: 'relative',
|
||||
display: 'block',
|
||||
margin: '10px auto',
|
||||
border: '1px solid #888',
|
||||
borderRadius: 4,
|
||||
margin: 10,
|
||||
boxShadow: '0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08);',
|
||||
|
||||
...(isRotated ? flip(item.value || {}) : item.value || {}),
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user