Skip to content

Commit

Permalink
app: Form Fields learned 'noCenter'
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Nov 19, 2020
1 parent 304c641 commit ad85252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/components/form/Field.tsx
Expand Up @@ -4,6 +4,7 @@ import {css} from '@emotion/core';

type Props = React.HTMLAttributes<HTMLLabelElement> & {
size?: 'sm' | 'md' | 'lg' | 'fit' | 'full';
noCenter?: boolean;
top?: boolean;
name?: string;
description?: React.ReactNode;
Expand Down Expand Up @@ -39,6 +40,7 @@ const Field = styled(({size, name, description, children, ...p}: Props) => (
${p =>
p.size !== 'full' &&
!p.noCenter &&
css`
> *:first-child {
justify-self: center;
Expand Down

0 comments on commit ad85252

Please sign in to comment.