mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 01:41:37 +03:00
launch: overlap responsive colors on white box
This commit is contained in:
parent
68271b7947
commit
d0d50f1aee
@ -48,12 +48,12 @@ export default function LaunchApp(props) {
|
||||
position={["relative", "absolute"]}
|
||||
left="0"
|
||||
bottom="0"
|
||||
bg="#f2f2f2"
|
||||
backgroundColor="white"
|
||||
ml={3}
|
||||
mb={3}
|
||||
borderRadius={2}
|
||||
overflow='hidden'
|
||||
fontSize={0}
|
||||
p={2}
|
||||
cursor="pointer"
|
||||
onClick={() => {
|
||||
writeText(props.baseHash);
|
||||
@ -63,7 +63,9 @@ export default function LaunchApp(props) {
|
||||
}, 2000);
|
||||
}}
|
||||
>
|
||||
<Text mono bold color="#000000">{hashText || props.baseHash}</Text>
|
||||
<Box backgroundColor="washedGray" p={2}>
|
||||
<Text mono bold>{hashText || props.baseHash}</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
);
|
||||
|
||||
@ -180,8 +182,8 @@ export default function LaunchApp(props) {
|
||||
/>
|
||||
<ModalButton
|
||||
icon="Plus"
|
||||
bg="#f2f2f2"
|
||||
color="#000"
|
||||
bg="washedGray"
|
||||
color="black"
|
||||
text="New Group"
|
||||
style={{ gridColumnStart: 1 }}
|
||||
>
|
||||
@ -189,8 +191,8 @@ export default function LaunchApp(props) {
|
||||
</ModalButton>
|
||||
<ModalButton
|
||||
icon="Boot"
|
||||
bg="#f2f2f2"
|
||||
color="#000"
|
||||
bg="washedGray"
|
||||
color="black"
|
||||
text="Join Group"
|
||||
>
|
||||
<JoinGroup {...props} />
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Box, Button, Icon, Text } from '@tlon/indigo-react';
|
||||
import { Row, Button, Icon, Text } from '@tlon/indigo-react';
|
||||
import { useModal } from '~/logic/lib/useModal';
|
||||
|
||||
const ModalButton = (props) => {
|
||||
@ -13,17 +13,18 @@ const ModalButton = (props) => {
|
||||
onClick={showModal}
|
||||
display='flex'
|
||||
cursor='pointer'
|
||||
justifyContent="start"
|
||||
bg={bg}
|
||||
p={2}
|
||||
bg="white"
|
||||
overflow='hidden'
|
||||
border={0}
|
||||
p={0}
|
||||
borderRadius={2}
|
||||
{...rest}
|
||||
>
|
||||
<Row bg={bg} p={2} width='100%' justifyContent="start" alignItems="center">
|
||||
<Icon icon={props.icon} mr={2} color={color}></Icon>
|
||||
<Text color={color} fontWeight="medium" whiteSpace='nowrap'>
|
||||
{props.text}
|
||||
</Text>
|
||||
</Text></Row>
|
||||
</Button>
|
||||
</>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user