diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-20 15:00:46 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-20 15:00:46 +0200 |
commit | 319938d57b8cd225de1dd3f63433f6561f92311e (patch) | |
tree | ed2815c270c013fd30bd880fb0f7ca97e68c76ef /components | |
parent | 29436b8bdcba28d0c6362a2c6a68268411be7293 (diff) |
new game dialog not broken anyore
Diffstat (limited to 'components')
-rw-r--r-- | components/page.tsx | 9 | ||||
-rw-r--r-- | components/ui.tsx | 37 |
2 files changed, 9 insertions, 37 deletions
diff --git a/components/page.tsx b/components/page.tsx index 506e2db..b8e3dac 100644 --- a/components/page.tsx +++ b/components/page.tsx @@ -1,12 +1,11 @@ import { Component, CSSProperties, ReactNode } from 'react'; -interface CenteredPageProps { +export function CenteredPage(props: { width?: number; children?: ReactNode; style?: CSSProperties; -} - -export function CenteredPage(props: CenteredPageProps) { + className?: string; +}) { return <div className='CenteredPageOuter' style={{ @@ -15,7 +14,7 @@ export function CenteredPage(props: CenteredPageProps) { }} > <div - className='CenteredPageInner' + className={'CenteredPageInner ' + props.className} style={{ margin: '0 6px', lineHeight: 0, diff --git a/components/ui.tsx b/components/ui.tsx index 9aa48cc..80bfba1 100644 --- a/components/ui.tsx +++ b/components/ui.tsx @@ -96,41 +96,14 @@ export function Input(props: { } export function SearchBar(props: { label?: string; }) { - return <div - style={{ - marginTop: 24, - borderRadius: 8, - overflow: 'hidden', - width: '100%', - }} - > + return <div className='searchBar round-t fullwidth'> <Input label={props.label} - style={{ - width: 'calc(100% - 24px - 41px)', - borderTopRightRadius: 0, - borderBottomRightRadius: 0, - }} + className='pad-m bg-700' /> - <div - style={{ - width: 41, - height: 41, - backgroundColor: 'var(--disk-a)', - display: 'inline-block', - verticalAlign: 'top', - position: 'relative', - }} - > - <SearchIcon - style={{ - position: 'absolute', - top: '50%', - left: '50%', - transform: 'translate(-50%, -50%)', - }} - /> - </div> + <Button className='dispinbl valigntop'> + <SearchIcon className='icon' /> + </Button> </div>; } |