Skip to content

Commit

Permalink
fix: various spacing clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 1, 2020
1 parent 69408aa commit d89c19a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/storybook-5/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const DocsPage = () => {
<Subtitle />
<Description />
<ComponentSource id="." title='Component source' />
<Playground openTab="source">
<Playground openTab="source" title=".">
<Story id="." />
</Playground>
<ControlsTable id="." />
Expand Down
2 changes: 1 addition & 1 deletion ui/blocks/src/Playground/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export const Playground: FC<PlaygroundProps> = ({
collapsible={collapsible}
>
{() => (
<ActionContainer plain={true} actions={actionsItems}>
<ActionContainer plain={false} actions={actionsItems}>
<TransformComponent>{childStories}</TransformComponent>
</ActionContainer>
)}
Expand Down
8 changes: 5 additions & 3 deletions ui/blocks/src/Story/Story.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React, { createElement, FC } from 'react';
/** @jsx jsx */
import { createElement, FC } from 'react';
import { jsx, Box } from 'theme-ui';
import { getControlValues } from '@component-controls/core';
import {
StoryBlockContainer,
Expand All @@ -21,9 +23,9 @@ export const Story: FC<StoryProps> = (props: StoryProps) => (
story.renderFn(values, { context }),
);
return (
<div id={story.id} {...rest}>
<Box id={story.id} sx={{ px: 3 }} {...rest}>
{children}
</div>
</Box>
);
} catch (e) {
console.error(e);
Expand Down
7 changes: 2 additions & 5 deletions ui/components/src/ActionContainer/ActionContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,10 @@ export const ActionContainer: FC<ActionContainerProps> = ({
<Box
sx={{
borderRadius: 4,
boxShadow: `${transparentize(
border: `1px solid ${transparentize(
0.9,
theme.colors?.text as string,
)} 0 1px 3px 1px, ${transparentize(
0.9,
theme.colors?.text as string,
)} 0 0 0 1px`,
)}`,
'div:first-child, svg:first-child': {
paddingTop,
},
Expand Down
4 changes: 2 additions & 2 deletions ui/components/src/BlockContainer/BlockContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const BlockContainer: FC<BlockContainerProps> = ({
<Box
sx={{
position: 'relative',
mt: 3,
mt: 4,
mb: 4,
width: '100%',
}}
Expand All @@ -66,7 +66,7 @@ export const BlockContainer: FC<BlockContainerProps> = ({
sx={{
flexDirection: 'row',
alignItems: 'center',
pb: 2,
pb: title ? 2 : 0,
':hover': {
a: {
visibility: 'visible',
Expand Down

0 comments on commit d89c19a

Please sign in to comment.